简体   繁体   English

如何阅读详细信息:GC输出?

[英]How to read a verbose:GC output?

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

You can find tutorials on interpreting verbose GC output eg. 您可以找到有关解释详细GC输出的教程,例如。 in: 在:

Looking at verbosegc output tutorial - Java 7 , you can see YoungGen space analysis : 查看verbosegc输出教程 - Java 7 ,您可以看到YoungGen空间分析

UPDATE 03/27/2014: The " Collection time (secs) " is actually a Timestamp showing the when the GC occurred. 更新03/27/2014:收集时间(秒) ”实际上是一个时间戳,显示GC发生的时间。 The Collection times are reported as Times=user=0.45 sys=0.01, real=0.14 secs] . 收集时间报告为Times=user=0.45 sys=0.01, real=0.14 secs]

在此输入图像描述

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

And, OldGen space analysis : 而且, OldGen空间分析

在此输入图像描述

In Addition to other answer , I am explaining Times section of log 除了其他答案,我正在解释日志的时段

[Times: user=0.09 sys=0.01, real=0.02 secs] [时间:用户= 0.09 sys = 0.01,实际= 0.02秒]

The “Times” section of the detailed log contains information about the CPU time used by the GC, separated into user space (“user”) and kernel space (“sys”) of the operating system.Also, it shows the real time (“real”) that passed while the GC was running. 详细日志的“时间”部分包含有关GC使用的CPU时间的信息,分为操作系统的用户空间(“用户”)和内核空间(“sys”)。此外,它还显示实时(在GC运行时通过的“真实”。

In your case the CPU time (0.09 sec) is considerably higher than the real time passed (0.02 Sec), we can conclude that the GC was run using multiple threads. 在您的情况下,CPU时间(0.09秒)远远高于实际传递的时间(0.02秒),我们可以得出结论,GC是使用多个线程运行的。

Detailed Example 详细示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM