性能问答>一次fgc 所消耗的时间怎么计算的>
3回复
4年前

一次fgc 所消耗的时间怎么计算的



一次cms gc分好几步, 具体fgc所消耗的时间 怎么计算?麻烦用下面一次fgc为例子 。

2019-12-26T13:58:07.614+0800: 121.200: [GC (CMS Initial Mark) [1 CMS-initial-mark: 392800K(1048576K)] 424244K(1992320K), 0.0032024 secs] [Times: user=0.04 sys=0.00, real=0.00 secs] 
2019-12-26T13:58:07.618+0800: 121.204: [CMS-concurrent-mark-start]
2019-12-26T13:58:07.636+0800: 121.222: [CMS-concurrent-mark: 0.018/0.018 secs] [Times: user=0.16 sys=0.00, real=0.02 secs] 
2019-12-26T13:58:07.636+0800: 121.222: [CMS-concurrent-preclean-start]
2019-12-26T13:58:07.642+0800: 121.228: [CMS-concurrent-preclean: 0.006/0.006 secs] [Times: user=0.01 sys=0.00, real=0.00 secs] 
2019-12-26T13:58:07.642+0800: 121.228: [CMS-concurrent-abortable-preclean-start]
 CMS: abort preclean due to time 2019-12-26T13:58:12.644+0800: 126.230: [CMS-concurrent-abortable-preclean: 3.062/5.002 secs] [Times: user=3.25 sys=0.05, real=5.00 secs] 
2019-12-26T13:58:12.645+0800: 126.231: [GC (CMS Final Remark) [YG occupancy: 39814 K (943744 K)]2019-12-26T13:58:12.645+0800: 126.231: [GC (CMS Final Remark) 2019-12-26T13:58:12.645+0800: 126.231: [ParNew: 39814K->23753K(943744K), 0.0764622 secs] 432615K->416553K(1992320K), 0.0768235 secs] [Times: user=0.16 sys=0.04, real=0.07 secs] 
2019-12-26T13:58:12.722+0800: 126.308: [Rescan (parallel) , 0.1005510 secs]2019-12-26T13:58:12.823+0800: 126.409: [weak refs processing, 0.0000919 secs]2019-12-26T13:58:12.823+0800: 126.409: [class unloading, 0.0286578 secs]2019-12-26T13:58:12.851+0800: 126.438: [scrub symbol table, 0.0241707 secs]2019-12-26T13:58:12.876+0800: 126.462: [scrub string table, 0.0017473 secs][1 CMS-remark: 392800K(1048576K)] 416553K(1992320K), 0.2328896 secs] [Times: user=0.47 sys=0.04, real=0.23 secs] 
2019-12-26T13:58:12.878+0800: 126.464: [CMS-concurrent-sweep-start]
2019-12-26T13:58:12.937+0800: 126.524: [CMS-concurrent-sweep: 0.059/0.059 secs] [Times: user=0.03 sys=0.00, real=0.06 secs] 
2019-12-26T13:58:12.938+0800: 126.524: [CMS-concurrent-reset-start]
2019-12-26T13:58:12.940+0800: 126.526: [CMS-concurrent-reset: 0.002/0.002 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
5501 阅读
请先登录,查看3条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步