Learn More About Performance Improvements in JDK 8
By Raymond Gallardo-Oracle on Mar 25, 2014
Each release of the JDK includes enhancements that improves the performance of the Java platform. The following describes some of these enhancements in JDK 8:
- The concurrent libraries have undergone a major revision to improve scalability. See Concurrency Utilities Enhancements in Java SE 8.
- Tiered Compilation, which was introduced in JDK 7, has been enabled by default and brings server VM startup speeds close to or on par with the client VM. For details on how to control the compiler, see the documentation for the java command.
- Permament generation, where the VM stored internal native data structures, such as class information, has been replaced with metaspace. Metaspace eliminates
java.lang.OutOfMemoryError: PermGen spaceerrors. The java command introduces the option
-XX:MetaspaceSize, which sets the maximum amount of native memory that can be allocated for class metadata. By default, the size is not limited. In addition, the experimental option
-Xsharehas been introduced, which reduces footprint and startup time by sharing loaded JDK classes between all Java processes on the same host.
- The new language feature Lambda expressions performs better than inner classes.
- The performance of JavaFX has been improved in JDK 8.
Download JDK 8 today and try it out!