其他分享
首页 > 其他分享> > JVM GC日志说明

JVM GC日志说明

作者:互联网

[GC (Allocation Failure) [PSYoungGen: 1592K->496K(2560K)] 1592K->504K(9728K), 0.0008324 secs] [Times: user=0.00 sys=0.00, real=0.00 secs] 
[GC (Allocation Failure) [PSYoungGen: 496K->512K(2560K)] 504K->520K(9728K), 0.0012244 secs] [Times: user=0.00 sys=0.00, real=0.00 secs] 
[Full GC (Allocation Failure) [PSYoungGen: 512K->0K(2560K)] [ParOldGen: 8K->393K(7168K)] 520K->393K(9728K), [Metaspace: 3140K->3140K(1056768K)], 0.0042845 secs] [Times: user=0.02 sys=0.00, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 0K->0K(2560K)] 393K->393K(9728K), 0.0007836 secs] [Times: user=0.01 sys=0.00, real=0.00 secs] 
[Full GC (Allocation Failure) [PSYoungGen: 0K->0K(2560K)] [ParOldGen: 393K->376K(7168K)] 393K->376K(9728K), [Metaspace: 3140K->3140K(1056768K)], 0.0032492 secs] [Times: user=0.01 sys=0.00, real=0.00 secs] 

说明:

例1:
[GC (Allocation Failure) [PSYoungGen: 1592K->496K(2560K)] 1592K->504K(9728K), 0.0008324 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]

例2:
[Full GC (Allocation Failure) [PSYoungGen: 512K->0K(2560K)] [ParOldGen: 8K->393K(7168K)] 520K->393K(9728K), [Metaspace: 3140K->3140K(1056768K)], 0.0042845 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at WhileTrueTest.test(WhileTrueTest.java:21)
	at WhileTrueTest.main(WhileTrueTest.java:10)
Heap
 PSYoungGen      total 2560K, used 81K [0x00000007bfd00000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 2048K, 3% used [0x00000007bfd00000,0x00000007bfd144d8,0x00000007bff00000)
  from space 512K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007bff80000)
  to   space 512K, 0% used [0x00000007bff80000,0x00000007bff80000,0x00000007c0000000)
 ParOldGen       total 7168K, used 376K [0x00000007bf600000, 0x00000007bfd00000, 0x00000007bfd00000)
  object space 7168K, 5% used [0x00000007bf600000,0x00000007bf65e0c8,0x00000007bfd00000)
 Metaspace       used 3193K, capacity 4500K, committed 4864K, reserved 1056768K
  class space    used 351K, capacity 388K, committed 512K, reserved 1048576K

标签:used,393K,2560K,0.00,secs,PSYoungGen,GC,JVM,日志
来源: https://blog.csdn.net/yangyijun1990/article/details/113823965