Skip to content

Instantly share code, notes, and snippets.

@alexandrnikitin
Last active December 5, 2022 19:14
Show Gist options
  • Save alexandrnikitin/b04ff5f217acab34e66b05cbe4ff7fce to your computer and use it in GitHub Desktop.
Save alexandrnikitin/b04ff5f217acab34e66b05cbe4ff7fce to your computer and use it in GitHub Desktop.
JVM G1 GC flags
-Xms196G
-Xmx196G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MetaspaceSize=1024M
-XX:MaxMetaspaceFreeRatio=90
-Xloggc:/var/log/service/gc.log
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintReferenceGC
-XX:+PrintAdaptiveSizePolicy
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCApplicationConcurrentTime
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=5
-XX:GCLogFileSize=10M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment