java虚拟机优化--gc日志


加入

wrapper.java.additional.5=-XX:+PrintGC

wrapper.java.additional.6=-XX:+PrintGCDetails

#wrapper.java.additional.7=-XX:+PrintGC:PrintGCTimeStamps

wrapper.java.additional.7=-Xloggc:gc.log

wrapper.java.additional.8=-XX:+PrintGCApplicationStoppedTime

wrapper.java.additional.9=-Xmn1200m

wrapper.java.additional.10=-XX:+UseConcMarkSweepGC

wrapper.java.additional.11=-XX:+UseParNewGC

wrapper.java.additional.12=-XX:+CMSParallelRemarkEnabled

wrapper.java.additional.13=-XX:+UseCMSCompactAtFullCollection


在tomcat的bin目录下打印出gc日志 


查看年轻代  年老代的非配

wrapper.java.additional.9=-Xmn1200m

参数就是调整年轻代的参数,一般是总jvm内存的40%



你可能感兴趣的:(java,GC日志)