2回复
4年前
CMS class unloading 时间过长 请帮忙分析下
JVM参数
-XX:+CMSClassUnloadingEnabled
-XX:CMSFullGCsBeforeCompaction=1
-XX:CMSInitiatingOccupancyFraction=75
-XX:+DisableExplicitGC
-XX:ErrorFile=/home/logs/user-service/hs_err_pid%p.log
-XX:+HeapDumpBeforeFullGC
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/mfsdata/javaHeapDump/user-service/
-XX:InitialHeapSize=2684354560
-XX:MaxHeapSize=2684354560
-XX:MaxTenuringThreshold=6
-XX:MetaspaceSize=268435456
-XX:NewRatio=2
-XX:OldPLABSize=16
-XX:+PrintClassHistogramAfterFullGC
-XX:+PrintClassHistogramBeforeFullGC
-XX:+PrintGC
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:ThreadStackSize=300
-XX:+UseCMSCompactAtFullCollection
-XX:+UseCompressedClassPointers
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
GC日志截图
3883 阅读