如何读取详细的:GC 输出?

70.222: [GC [PSYoungGen: 131072K->15437K(152896K)] 131072K->15509K(502464K), 0.0228420 secs] [Times: user=0.09 sys=0.01, real=0.02 secs]

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
  • 堆设置和读取详细的 GC 输出

看verbosegc 输出教程-Java 7,可以看到YoungGen空间分析:

2014 年 3 月 27 日更新:收集时间(秒)"实际上是显示 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).

Here, the 262208K->137900K(100428K) means Java Heap before GC-> Java Heap after GC (Total Size of the Java Heap).

还有,OldGen 空间分析:

相关文章