首页 > 解决方案 > CMS GC 很长的停顿

问题描述

这是我的一些 GC 日志。如果您看到大部分实时时间都少于我作为应用程序的用户时间,则似乎正在使用多个线程进行 GC。但有一种情况,我看到真实的和用户是一样的。这是为什么

2020-05-15T09:10:30.389+0000: 545173.557: [CMS-concurrent-mark: 1.438/1.438 secs] [Times: user=19.06 sys=2.35, real=1.44 secs] 
2020-05-15T09:10:31.474+0000: 545174.642: [CMS-concurrent-abortable-preclean: 0.956/1.043 secs] [Times: user=5.56 sys=2.20, real=1.04 secs] 
2020-05-15T10:50:30.935+0000: 551174.102: [GC (Allocation Failure) 2020-05-15T10:50:30.935+0000: 551174.102: [ParNew (promotion failed): 2342575K->2343419K(2530368K), 0.5566294 secs]2020-05-15T10:50:31.491+0000: 551174.658: [CMS: 11401717K->2753238K(13965760K), 12.4962964 secs] 13743114K->2753238K(16496128K), [Metaspace: 40012K->40012K(1085440K)], 13.0530955 secs] [Times: user=13.89 sys=0.00, real=13.06 secs] 
2020-05-15T12:43:00.260+0000: 557923.427: [CMS-concurrent-mark: 1.298/1.298 secs] [Times: user=17.48 sys=0.00, real=1.30 secs] 
2020-05-15T12:43:01.786+0000: 557924.953: [CMS-concurrent-abortable-preclean: 1.402/1.491 secs] [Times: user=9.52 sys=0.00, real=1.50 secs] 
2020-05-15T13:44:20.479+0000: 561603.646: [CMS-concurrent-mark: 1.280/1.280 secs] [Times: user=17.49 sys=0.00, real=1.28 secs] 

标签: javagarbage-collection

解决方案


推荐阅读