Skip to content

Instantly share code, notes, and snippets.

@vizanto
Created March 31, 2018 23:31
Show Gist options
  • Save vizanto/809119f504c1f656d62593b181829c58 to your computer and use it in GitHub Desktop.
Save vizanto/809119f504c1f656d62593b181829c58 to your computer and use it in GitHub Desktop.
JVM tune
-server
-Xms12G
-Xmx12G
-XX:+UnlockExperimentalVMOptions
-XX:+UnlockDiagnosticVMOptions
-XX:+PrintClassHistogram
-XX:+UseG1GC
-XX:G1HeapRegionSize=16M
-XX:MaxGCPauseMillis=300
-XX:GCPauseIntervalMillis=1000
-XX:ParallelGCThreads=6
-XX:ConcGCThreads=4
-XX:G1ConcRefinementThreads=4
-XX:GCLogFileSize=100M
-XX:+UseTLAB
-XX:+ResizeTLAB
-verbose:gc
-Xloggc:appserver-gc.log
-XX:+G1SummarizeConcMark
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-XX:+PrintJNIGCStalls
-XX:+PrintAdaptiveSizePolicy
-XX:+PrintReferenceGC
-XX:+PrintStringTableStatistics
-XX:+PrintTenuringDistribution
-Xss256k
-XX:+UseNUMA
-XX:LargePageSizeInBytes=1073741824
-XX:+TieredCompilation
-XX:ReservedCodeCacheSize=256m
-XX:+ParallelRefProcEnabled
-XX:ParGCCardsPerStrideChunk=32768
-XX:+ExplicitGCInvokesConcurrent
-XX:+AggressiveOpts
-XX:+OptimizeStringConcat
-XX:+UseStringDeduplication
-XX:+DoEscapeAnalysis
-XX:+AlwaysPreTouch
-XX:+UseLargePages
-XX:+UseCompressedOops
-XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42
-XX:+HeapDumpOnOutOfMemoryError
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.rmi.port=7199
-Dcom.sun.management.jmxremote.authenticate=false
-Djavax.net.ssl.trustStore=/var/lib/appserver/config/jssecacerts
-Djava.net.preferIPv4Stack=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment