Java垃圾收集器之Serial收集器(2)

[GC [DefNew: 1989K->131K(2112K),0.0011326 secs][Tenured: 29536K->29539K(29568K), 0.0032603 secs]29669K->29667K(31680K), [Perm : 2086K->2086K(12288K)], 0.0044714 secs][Times: user=0.00 sys=0.00, real=0.00 secs]

[GC [DefNew: 2562K->192K(2880K),0.0024077 secs] 32102K->32100K(40704K), 0.0024426 secs] [Times: user=0.00sys=0.00, real=0.00 secs]

[GC [DefNew: 2755K->192K(2880K),0.0015362 secs] 34663K->34662K(40704K), 0.0015731 secs] [Times: user=0.00sys=0.00, real=0.00 secs]

[GC [DefNew: 2755K->192K(2880K),0.0015842 secs] 37224K->37223K(40704K), 0.0016187 secs] [Times: user=0.00sys=0.00, real=0.00 secs]

[GC [DefNew: 2755K->2755K(2880K),0.0000144 secs][Tenured: 37030K->37799K(37824K), 0.0039907 secs]39786K->39784K(40704K), [Perm : 2086K->2086K(12288K)], 0.0040547 secs][Times: user=0.00 sys=0.00, real=0.00 secs]

[Full GC [Tenured:37799K->37799K(37824K), 0.0032501 secs] 40554K->40553K(40704K), [Perm :2086K->2086K(12288K)], 0.0032940 secs] [Times: user=0.00 sys=0.00, real=0.00secs]

[Full GC [Tenured:37799K->37792K(37824K), 0.0107478 secs] 40553K->40546K(40704K), [Perm :2086K->2084K(12288K)], 0.0107782 secs] [Times: user=0.02 sys=0.00, real=0.01secs]

Exception in thread "main"java.lang.OutOfMemoryError: Java heap space

atcom.gc.EasySerial.<init>(EasySerial.java:12)

atcom.gc.EasySerial.outOfMemoryByExpansionSize(EasySerial.java:39)

atcom.gc.EasySerial.main(EasySerial.java:14)

Heap

def new generation  total 2880K, used 2810K [0x03ca0000,0x03fb0000, 0x03fb0000)

eden space 2624K,  99% used[0x03ca0000, 0x03f2e8e8, 0x03f30000)

from space 256K,  75% used[0x03f70000, 0x03fa0030, 0x03fb0000)

to  space 256K,  0% used [0x03f30000, 0x03f30000, 0x03f70000)

tenured generation  total 37824K, used 37792K [0x03fb0000,0x064a0000, 0x064a0000)

the space 37824K,  99% used[0x03fb0000, 0x064982e0, 0x06498400, 0x064a0000)

compacting perm gen  total 12288K, used 2105K [0x064a0000,0x070a0000, 0x0a4a0000)

the space 12288K,  17% used [0x064a0000, 0x066ae4a8, 0x066ae600,0x070a0000)

其他的内容和固定大小基本一致,多出来一种情况:

[GC [DefNew: 2755K->2755K(2880K),0.0000144 secs][Tenured: 37030K->37799K(37824K), 0.0039907 secs]39786K->39784K(40704K), [Perm : 2086K->2086K(12288K)], 0.0040547 secs][Times: user=0.00 sys=0.00, real=0.00 secs]

这个是对新生代,老年代,永久代都进行了次级垃圾回收。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c0e2cc8be79f1a19673b8c3707caae4f.html