环境版本,Java1.8,GC日志参数
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC
YoungGC找到一条输出的日志:
2335.667: Total time for which application threads were stopped: 0.0042227 seconds, Stopping threads took: 0.0000467 seconds
2335.879: Application time: 0.2122459 seconds
{Heap before GC invocations=741 (full 3):
def new generation total 176960K, used 157479K [0x00000000e8000000, 0x00000000f4000000, 0x00000000f4000000)
eden space 157312K, 100% used [0x00000000e8000000, 0x00000000f19a0000, 0x00000000f19a0000)
from space 19648K, 0% used [0x00000000f19a0000, 0x00000000f19c9fe8, 0x00000000f2cd0000)
to space 19648K, 0% used [0x00000000f2cd0000, 0x00000000f2cd0000, 0x00000000f4000000)
tenured generation total 196608K, used 47047K [0x00000000f4000000, 0x0000000100000000, 0x000000010000