Child pages
  • Tuning the JVM

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following is an example set of JVM options using the G1GC G1 GC (GC logging omitted):

Code Block
languagebash
titleUseful G1GC G1 GC configuration options
-XX:InitialHeapSize=5g -XX:MaxHeapSize=5g \
-XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M \
-XX:MaxTenuringThreshold=1 \
-XX:+UseStringDeduplication \
-XX:+UseG1GC \
-XX:MaxGCPauseMillis=500\

...