CMS-initial-mark 从 60%(预期值)开始并不断增长,尽管使用:-XX:+UseCMSInitiatingOccupancyOnly 和 -XX:CMSInitiatingOccupancyFraction=60
我可以寻求帮助,为什么它会增加?
标志:
-Xms28g -Xmx28g -XX:PermSize=512m -XX:MaxPermSize=512m -Xss512k -XX:NewSize=8g -XX:MaxNewSize=8g -XX:SurvivorRatio=6 -XX:+AlwaysPreTouch -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:+CMSScavengeBeforeRemark -XX:CMSWaitDuration=3600000 -XX:+ExplicitGCInvokesConcurrent -XX:CMSScheduleRemarkEdenPenetration=10 -XX:CMSMaxAbortablePrecleanTime=5000 -XX :CMSInitiatingOccupancyFraction=60 -XX:+UseCMSInitiatingOccupancyOnly
GC日志:
08/25-18:00:48 [4] <48574> 145285.817: [CMS-concurrent-abortable-preclean-start]
08/25-18:00:51 [4] <48574> 145286.877:[ GC(分配失败) 145286.877:[ParNew(升级失败):6332558K->6339431K(7340032K),1.7870705 秒]145288.664:[CMS1452 [CMS-concurrent-abortable-preclean: 1.138/2.932 secs] [Times: user=7.11 sys=0.04, real=2.93 secs]
08/25-18:02:14 [4] <48574> (并发模式失败):20937785K->20947677K(20971520K), 82.4977633 秒] 27269752K->20947677K(28311552K), [元空间: 108471K4-8] ], 84.2851262 secs] [Times: user=84.51 sys=0.01, real=84.29 secs]
oldGen 历史:
08/25-18:00:34 [4] <48574> 145271.408: [GC (CMS Initial Mark) [1 CMS-initial-mark: 20933339K(20971520K)] 21000667K(28311552K), 0.0057867 secs] [Times: user= 0.04 系统=0.00,真实=0.01 秒]
08/25-18:02:31 [4] <48574> 145388.639: [GC (CMS Initial Mark) [1 CMS-initial-mark: 20947677K(20971520K)] 21005038K(28311552K), 0.0044022 secs] [Times: user= 0.03 系统=0.00,真实=0.01 秒]