我们的申请每次需要25-35秒,并在GC[YG occupancy..]]
我们的GC参数是根据可用内存设置的,但应用程序已停止上述时间。
JDK版本:1.6
GC参数是:
-XX:+UseParNewGC
-XX:NewSize=600m
-XX:MaxNewSize=600m
-XX:SurvivorRatio=3
-XX:+CMSPrecleanRefLists1
-XX:+CMSPrecleanRefLists2
-XX:+CMSClassUnloadingEnabled
-XX:+CMSScavengeBeforeRemark
-XX:PrintCMSStatistics=2
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSMarkStackSize=4m
-XX:CMSMarkStackSizeMax=516m
-XX:ParGCDesiredObjsFromOverflowList=20k
-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:CMSInitiatingOccupancyFraction=65
-XX:+PrintGCApplicationStoppedTime
-XX:-OmitStackTraceInFastThrow
-XX:MaxDirectMemorySize=6g
-XX:+DisableExplicitGC
请帮忙,GC日志是:
2014-08-16T06:51:02.054-0400: 80744.151: [GC[YG occupancy: 5263K (83891K)]2014-08-16T06:51:02.054-0400: 80744.151: [GC 80744.151: [ParNew: 5263K->4505K(83891K), 0.0454870 secs] 22835786->2282820K(3334476K), 0.0456220 secs] [Times: user=0.74 sys=0.00, real=0.04 secs]
80744.197: [Rescan (parallel) (Survivor:28chunks) Finished young gen rescan work in 5th thread: 0.000 sec
Finished young gen rescan work in 6th thread: 0.000 sec
Finished young gen rescan work in 9th thread: 0.000 sec
Finished young gen rescan work in 12th thread: 0.000 sec
Finished young gen rescan work in 4th thread: 0.000 sec
Finished young gen rescan work in 13th thread: 0.000 sec
Finished young gen rescan work in 10th thread: 0.000 sec
Finished young gen rescan work in 2th thread: 0.000 sec
Finished young gen rescan work in 14th thread: 0.000 sec
Finished young gen rescan work in 15th thread: 0.000 sec
Finished young gen rescan work in 16th thread: 0.000 sec
Finished young gen rescan work in 17th thread: 0.000 sec
Finished remaining root rescan work in 17th thread: 0.000 sec
Finished remaining root rescan work in 9th thread: 0.000 sec
Finished remaining root rescan work in 5th thread: 0.000 sec
Finished remaining root rescan work in 13th thread: 0.000 sec
Finished remaining root rescan work in 6th thread: 0.000 sec
Finished remaining root rescan work in 14th thread: 0.000 sec
Finished remaining root rescan work in 15th thread: 0.000 sec
Finished remaining root rescan work in 4th thread: 0.000 sec
Finished remaining root rescan work in 16th thread: 0.000 sec
Finished remaining root rescan work in 2th thread: 0.000 sec
Finished young gen rescan work in 1th thread: 0.001 sec
Finished remaining root rescan work in 1th thread: 0.000 sec
Finished remaining root rescan work in 10th thread: 0.001 sec
Finished young gen rescan work in 8th thread: 0.002 sec
Finished remaining root rescan work in 8th thread: 0.000 sec
Finished young gen rescan work in 7th thread: 0.003 sec
Finished remaining root rescan work in 7th thread: 0.000 sec
Finished young gen rescan work in 0th thread: 0.005 sec
Finished remaining root rescan work in 0th thread: 0.000 sec
Finished remaining root rescan work in 12th thread: 0.008 sec
Finished dirty card rescan work in 14th thread: 0.009 sec
Finished dirty card rescan work in 6th thread: 0.009 sec
Finished dirty card rescan work in 2th thread: 0.009 sec
Finished dirty card rescan work in 1th thread: 0.009 sec
Finished dirty card rescan work in 0th thread: 0.005 sec
Finished dirty card rescan work in 10th thread: 0.009 sec
Finished dirty card rescan work in 17th thread: 0.009 sec
Finished dirty card rescan work in 7th thread: 0.007 sec
Finished dirty card rescan work in 15th thread: 0.009 sec
Finished dirty card rescan work in 9th thread: 0.009 sec
Finished dirty card rescan work in 12th thread: 0.002 sec
Finished dirty card rescan work in 16th thread: 0.009 sec
Finished dirty card rescan work in 5th thread: 0.009 sec
Finished dirty card rescan work in 13th thread: 0.009 sec
Finished dirty card rescan work in 4th thread: 0.009 sec
Finished dirty card rescan work in 8th thread: 0.008 sec
Finished young gen rescan work in 3th thread: 0.031 sec
Finished remaining root rescan work in 3th thread: 0.000 sec
Finished dirty card rescan work in 3th thread: 0.000 sec
Finished young gen rescan work in 11th thread: 0.047 sec
Finished remaining root rescan work in 11th thread: 0.000 sec
Finished dirty card rescan work in 11th thread: 0.000 sec
Finished work stealing in 1th thread: 24.934 sec
Finished work stealing in 11th thread: 24.897 sec
Finished work stealing in 2th thread: 24.934 sec
Finished work stealing in 6th thread: 24.934 sec
Finished work stealing in 5th thread: 24.934 sec
Finished work stealing in 0th thread: 24.934 sec
Finished work stealing in 16th thread: 24.934 sec
Finished work stealing in 8th thread: 24.934 sec
Finished work stealing in 4th thread: 24.934 sec
Finished work stealing in 15th thread: 24.934 sec
Finished work stealing in 9th thread: 24.934 sec
Finished work stealing in 14th thread: 24.934 sec
Finished work stealing in 3th thread: 24.913 sec
Finished work stealing in 17th thread: 24.934 sec
Finished work stealing in 7th thread: 24.934 sec
Finished work stealing in 12th thread: 24.934 sec
Finished work stealing in 10th thread: 24.934 sec
Finished work stealing in 13th thread: 24.934 sec
, 24.9444010 secs]80769.141: [weak refs processing, 0.0053080 secs]80769.146: [class unloading, 0.0244670 secs]80769.171: [scrub symbol & string tables, 0.0307390 secs] [1 CMS-remark: 2278315K(3250585K)] 2282820K(3334476K), 25.0603030 secs] [Times: user=449.55 sys=0.11, real=25.06 secs]
Total time for which application threads were stopped: 25.0614090 seconds