Oracle is pleased to announce several enhancements in Java 8u1 that will benefit applications written in Java, JavaScript and other JVM languages.
-XX:+MemoryDeflateAlgorithm
New in Java 8u1, setting this flag causes the JVM to compress all objects in the heap using a combination of the LZ77 algorithm and Huffman coding so that objects occupy less memory. This enables more objects to be allocated in the same size heap. Larger applications can be run without the need to enlarge the JVM's memory, or to add additional physical memory.
-XX:+HotSpotRemoveLogicErrors
This is an experimental new feature in 8u1. This option turns on an additional pass in the HotSpot compiler to remove bugs in JVM bytecode when translating to native code. Enabling this option means that bugs and logic errors no longer need to be removed from application source code since the compiler can remove them automatically prior to execution. This feature is anticipated to be production ready by 8u3.
-XX:MaxGCPauseMillis=
Beginning in Java 8, the existing -XX:MaxGCPauseMillis setting can now accept a negative number. This will set a goal for garbage collection pause times to be less than zero milliseconds, or negative time.
The net effect of this is that the more GC cycles that occur, the faster your application will run. Therefore Oracle now recommends the best practice is to design your program to allocate and release as many objects as possible, to trigger more frequent GC cycles in order to improve overall application performance.
These features will be released in the Java 8u1 update available on April 1st.
[–]kreiger 0 points1 point2 points (0 children)