牺牲cpu减少fullgc暂停时间vm参数配置


-Xms4096m -Xmx4096m -XX:PermSize=256m -XX:NewSize=384m -XX:NewRatio=4 -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSFullGCsBeforeCompaction=5 -Xloggc:/logs/gc.log -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime 

你可能感兴趣的:(java,fullgc,opt)