Skip to content

Instantly share code, notes, and snippets.

@diablowu
Created April 13, 2020 08:37
Show Gist options
  • Save diablowu/cf002111515825f71cbb42ffe6bf111c to your computer and use it in GitHub Desktop.
Save diablowu/cf002111515825f71cbb42ffe6bf111c to your computer and use it in GitHub Desktop.
jdk8-jvm.options
-Xmx8G
-Xms8G
-Xmn2G
-Xss256k
-XX:MaxMetaspaceSize=256M
-XX:+HeapDumpOnOutOfMemoryError
-XX:+AlwaysPreTouch
-XX:+UseTLAB
-XX:+ResizeTLAB
-XX:+UseNUMA
-Djava.net.preferIPv4Stack=true
#-XX:+UnlockDiagnosticVMOptions
#-XX:+PrintGCDetails
#-XX:+PrintGCDateStamps
#-XX:+PrintHeapAtGC
#-XX:+PrintTenuringDistribution
#-XX:+PrintGCApplicationStoppedTime
#-XX:+PrintPromotionFailure
#-Xloggc:/tmp/gc/gc-$$.log
# cms
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSWaitDuration=10000
-XX:+CMSParallelInitialMarkEnabled
-XX:+CMSEdenChunksRecordAlways
-XX:+CMSClassUnloadingEnabled
# g1gc
#-XX:+UseG1GC
#-XX:+ParallelRefProcEnabled
#-XX:G1RSetUpdatingPauseTimePercent=5
#-XX:MaxGCPauseMillis=500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment