|
|
|
Back to newsletter 243 contents
As usual just before each Java release, I'm listing all the new performance features in the upcoming release of Java 16 (I have done this every 6 months prior to each new release, you can track back to the previous February and August newsletters if you want to see what's new performance-wise in any release). As usual I give the new features, the performance benefits from each feature, and how to use the feature.
Java 16 has one big performance feature: similar to last month's announcement that Shenandoah should have no pauses over a millisecond in Java 17, ZGC has achieved the same fully concurrent status, but actually one release earlier! That's great, it means you can start testing straight away whether it works for you. As with Shenandoah, you'll need to have sufficient additional CPU and memory to achieve that performance. For small heaps (up to 1GB) or high throughput applications (ZGC and Shenandoah are targeting pauses, not throughput) it's likely that G1 is the better GC option (so good to see G1 features continued to be worked on, see JDK-8236926 below).
There are other performance features in this release: there's good news if you want minimal container footprint with the alpine port; if you need the fastest local inter-process communication we now have unix-domain socket channels (also works on Windows, MacOS, etc); Metaspace memory management is better; C++ support is upgraded; vector hardware support is testable; and Records are fully released - although not a direct performance improvement, this should improve the use of immutable objects and that will gradually feed in to better performance
Now on to the details of those Java 16 changes, including the options you have available to use them. And of course the tips from this month's articles, as ever are extracted into this month's tips page.
Java performance tuning related news - Java 16 generally useful performance features.
Java performance tuning related news - Java 16 niche but useful performance features.
Back to newsletter 243 contents