[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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。