Open donsizemore opened 3 years ago
Quicker start for Payara 5:
In domain.xml, remove or comment out
<jvm-options>-XX:+UseG1GC</jvm-options>
<jvm-options>-XX:+UseStringDeduplication</jvm-options>
<jvm-options>-XX:+DisableExplicitGC</jvm-options>
and replace with
<jvm-options>-XX:+UnlockExperimentalVMOptions</jvm-options>
<jvm-options>-XX:+UseZGC</jvm-options>
<jvm-options>-XX:ZCollectionInterval=nnn</jvm-options>
where nnn
is the maximum interval, in seconds, between GC cycles.
Related to #8094 - OpenJDK17 includes a "production ready" version of ZGC.
ZGC is available in Java 11 and can handle heaps up to 16TB. @kcondon is interested because it attempts to deal with eventual memory fragmentation due to reclamation for faster allocation on an ongoing basis.
Quick start:
-XX:+UseZGC -Xmx<size> -Xlog:gc
More at https://wiki.openjdk.java.net/display/zgc/Main