如何阅读详细:GC 输出? [英] How to read a verbose:GC output?
问题描述
70.222: [GC [PSYoungGen: 131072K->15437K(152896K)] 131072K->15509K(502464K),0.0228420 秒] [时间:用户=0.01]0s=0.01> sys=0.01
70.222: [GC [PSYoungGen: 131072K->15437K(152896K)] 131072K->15509K(502464K), 0.0228420 secs] [Times: user=0.09 sys=0.01, real=0.02 secs]
推荐答案
您可以找到有关解释详细 GC 输出的教程,例如.在:
You can find tutorials on interpreting verbose GC output eg. in:
查看 verbosegc 输出教程 - Java 7,可以看到YoungGen空间分析:
UPDATE 03/27/2014:收集时间(秒)"实际上是一个时间戳,显示 GC 发生的时间.收集时间报告为 Times=user=0.45 sys=0.01, real=0.14 secs]
.
UPDATE 03/27/2014: The "Collection time (secs)" is actually a Timestamp showing the when the GC occurred. The Collection times are reported as Times=user=0.45 sys=0.01, real=0.14 secs]
.
这里的262208K->137900K(100428K)
表示Java Heap before GC
-> Java Heap after GC (Total Size of the Java Heap)
.
而且,OldGen 空间分析:
这篇关于如何阅读详细:GC 输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!