java - 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]
解决方案
推荐阅读
- c# - Azure webJob 中使用 ILogger 的 DI
- amazon-web-services - AWSEBCLI 没有这样的文件或目录
- julia - 安装一个包而不更新其他不相关的包(Julia 1.0)
- gnupg - 无法登录 git-crypt,因为 .gnupg/pubring.kbx 文件搞砸了
- php - 尽管 varchar 长度正确,但 php 中的 password_verify 函数不起作用
- spss - 如何合并来自不同列的 SPSS 变量的内容
- git - 无法推送到 Github:gitmodulesParse: could not parse gitmodules blob
- amazon-web-services - Amazon AWS EC2 - 如何限制仅从弹性负载均衡器接收流量?
- java - 如何在 Spark Streaming 中使用 redis?
- azure-active-directory - Azure 活动目录服务