프로젝트 에 사용 할 GC 인자
1565 단어 자바 가상 머 신 이해
(1) GC = ParNew + CMS + Serial Old( )
(2) :CMS GC , , CMS (1-92%) ,GC ,JVM GC
(3)CMS :
CPU , 25%CPU
GC , GC ,
CMS - ,
CUSTOM_JVM_ONLINE=" -server
-Dfile.encoding=UTF-8
-Dsun.jnu.encoding=UTF-8
-Djava.net.preferIPv6Addresses=false
-Djava.io.tmpdir=/tmp
-Duser.timezone=GMT+08
-Xmx6g
-Xms6g
-XX:MetaspaceSize=128m // , ,
-XX:MaxMetaspaceSize=256m //
-XX:SurvivorRatio=8
-XX:NewRatio=3 // :1:3, -Xmn
-XX:+HeapDumpOnOutOfMemoryError
-XX:+DisableExplicitGC // JVM GC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintCommandLineFlags
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC // , , CMS
-XX:ParallelCMSThreads=4 //
-XX:+CMSClassUnloadingEnabled //
-XX:+UseCMSCompactAtFullCollection // , Full Gc
-XX:CMSFullGCsBeforeCompaction=1 // Full Gc ,
-XX:CMSInitiatingOccupancyFraction=72" // CMS 72%