IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
882 stars 494 forks source link

As a Dataverse admin running Dataverse on Java 11, I'd like to experiment with ZGC #7530

Open donsizemore opened 3 years ago

donsizemore commented 3 years ago

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

donsizemore commented 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.

donsizemore commented 1 year ago

Related to #8094 - OpenJDK17 includes a "production ready" version of ZGC.