JVM相关配置项

-Xmx3072m -Xms3072m -Xmn2048m -XX:SurvivorRatio=6
-XX:CMSInitiatingOccupancyFraction=50
-XX:+CMSParallelRemarkEnabled
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:ParallelGCThreads=4
-XX:+UseCMSCompactAtFullCollection
-XX:+ExplicitGCInvokesConcurrent

// 启用FlightRecorder
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder

// 打印GC日志
-XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintReferenceGC

你可能感兴趣的:(JVM相关配置项)