GC log举例:CMS垃圾收集器

Java HotSpot(TM) 64-Bit Server VM (25.144-b01) for bsd-amd64 JRE (1.8.0_144-b01), built on Jul 21 2017 22:07:42 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Memory: 4k page, physical 16777216k(252440k free)

/proc/meminfo:

CommandLine flags: -XX:InitialHeapSize=10485760 -XX:MaxHeapSize=10485760 -XX:MaxNewSize=5242880 -XX:MaxTenuringThreshold=6 -XX:NewSize=5242880 -XX:OldPLABSize=16 -XX:+PrintFlagsFinal -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
20.222: [GC (Allocation Failure) 20.222: [ParNew: 3948K->375K(4608K), 0.0054813 secs] 3948K->3449K(9728K), 0.0056159 secs] [Times: user=0.03 sys=0.01, real=0.00 secs]
20.228: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 4473K(9728K), 0.0006449 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
20.229: [CMS-concurrent-mark-start]
20.229: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
20.229: [CMS-concurrent-preclean-start]
20.229: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
20.229: [GC (CMS Final Remark) [YG occupancy: 1399 K (4608 K)]20.229: [Rescan (parallel) , 0.0003319 secs]20.230: [weak refs processing, 0.0000668 secs]20.230: [class unloading, 0.0004571 secs]20.230: [scrub symbol table, 0.0006488 secs]20.231: [scrub string table, 0.0001789 secs][1 CMS-remark: 3074K(5120K)] 4473K(9728K), 0.0017469 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
20.231: [CMS-concurrent-sweep-start]
20.231: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
20.231: [CMS-concurrent-reset-start]
20.231: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.234: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 4473K(9728K), 0.0003197 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.234: [CMS-concurrent-mark-start]
22.234: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.234: [CMS-concurrent-preclean-start]
22.234: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.234: [GC (CMS Final Remark) [YG occupancy: 1399 K (4608 K)]22.234: [Rescan (parallel) , 0.0003560 secs]22.235: [weak refs processing, 0.0000781 secs]22.235: [class unloading, 0.0002742 secs]22.235: [scrub symbol table, 0.0006571 secs]22.236: [scrub string table, 0.0002373 secs][1 CMS-remark: 3074K(5120K)] 4473K(9728K), 0.0017137 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.236: [CMS-concurrent-sweep-start]
22.236: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
22.236: [CMS-concurrent-reset-start]
22.236: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.240: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 4473K(9728K), 0.0003844 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.240: [CMS-concurrent-mark-start]
24.241: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.241: [CMS-concurrent-preclean-start]
24.241: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.241: [GC (CMS Final Remark) [YG occupancy: 1399 K (4608 K)]24.241: [Rescan (parallel) , 0.0003210 secs]24.241: [weak refs processing, 0.0000665 secs]24.241: [class unloading, 0.0002474 secs]24.241: [scrub symbol table, 0.0004930 secs]24.242: [scrub string table, 0.0002236 secs][1 CMS-remark: 3074K(5120K)] 4473K(9728K), 0.0014285 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.242: [CMS-concurrent-sweep-start]
24.242: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
24.242: [CMS-concurrent-reset-start]
24.242: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.241: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 5576K(9728K), 0.0002789 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.242: [CMS-concurrent-mark-start]
26.242: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.242: [CMS-concurrent-preclean-start]
26.242: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.242: [CMS-concurrent-abortable-preclean-start]
26.242: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.242: [GC (CMS Final Remark) [YG occupancy: 2502 K (4608 K)]26.242: [Rescan (parallel) , 0.0003865 secs]26.242: [weak refs processing, 0.0001156 secs]26.242: [class unloading, 0.0003219 secs]26.243: [scrub symbol table, 0.0013172 secs]26.244: [scrub string table, 0.0007798 secs][1 CMS-remark: 3074K(5120K)] 5576K(9728K), 0.0030871 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.245: [CMS-concurrent-sweep-start]
26.245: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
26.245: [CMS-concurrent-reset-start]
26.245: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.249: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 5576K(9728K), 0.0003240 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.249: [CMS-concurrent-mark-start]
28.249: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.249: [CMS-concurrent-preclean-start]
28.249: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.249: [CMS-concurrent-abortable-preclean-start]
28.249: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.249: [GC (CMS Final Remark) [YG occupancy: 2502 K (4608 K)]28.249: [Rescan (parallel) , 0.0003214 secs]28.250: [weak refs processing, 0.0000889 secs]28.250: [class unloading, 0.0003195 secs]28.250: [scrub symbol table, 0.0005969 secs]28.251: [scrub string table, 0.0001391 secs][1 CMS-remark: 3074K(5120K)] 5576K(9728K), 0.0015527 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
28.251: [CMS-concurrent-sweep-start]
28.251: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
28.251: [CMS-concurrent-reset-start]
28.251: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.254: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 6600K(9728K), 0.0003426 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.254: [CMS-concurrent-mark-start]
30.254: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.255: [CMS-concurrent-preclean-start]
30.255: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.255: [CMS-concurrent-abortable-preclean-start]
30.255: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.255: [GC (CMS Final Remark) [YG occupancy: 3526 K (4608 K)]30.255: [Rescan (parallel) , 0.0002757 secs]30.255: [weak refs processing, 0.0000668 secs]30.255: [class unloading, 0.0002436 secs]30.255: [scrub symbol table, 0.0006357 secs]30.256: [scrub string table, 0.0002391 secs][1 CMS-remark: 3074K(5120K)] 6600K(9728K), 0.0015588 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.256: [CMS-concurrent-sweep-start]
30.256: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
30.256: [CMS-concurrent-reset-start]
30.256: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.260: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 6600K(9728K), 0.0005085 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.260: [CMS-concurrent-mark-start]
32.260: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.260: [CMS-concurrent-preclean-start]
32.260: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.260: [CMS-concurrent-abortable-preclean-start]
32.260: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.261: [GC (CMS Final Remark) [YG occupancy: 3526 K (4608 K)]32.261: [Rescan (parallel) , 0.0005416 secs]32.261: [weak refs processing, 0.0001546 secs]32.261: [class unloading, 0.0005820 secs]32.262: [scrub symbol table, 0.0012405 secs]32.263: [scrub string table, 0.0004048 secs][1 CMS-remark: 3074K(5120K)] 6600K(9728K), 0.0030603 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
32.264: [CMS-concurrent-sweep-start]
32.264: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
32.264: [CMS-concurrent-reset-start]
32.264: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.267: [GC (CMS Initial Mark) [1 CMS-initial-mark: 3074K(5120K)] 6600K(9728K), 0.0009456 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.268: [CMS-concurrent-mark-start]
34.268: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.268: [CMS-concurrent-preclean-start]
34.268: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.268: [CMS-concurrent-abortable-preclean-start]
34.268: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.268: [GC (CMS Final Remark) [YG occupancy: 3526 K (4608 K)]34.268: [Rescan (parallel) , 0.0005565 secs]34.269: [weak refs processing, 0.0001771 secs]34.269: [class unloading, 0.0009664 secs]34.270: [scrub symbol table, 0.0009080 secs]34.271: [scrub string table, 0.0003309 secs][1 CMS-remark: 3074K(5120K)] 6600K(9728K), 0.0030878 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
34.272: [CMS-concurrent-sweep-start]
34.272: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
34.272: [CMS-concurrent-reset-start]
34.272: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.241: [GC (Allocation Failure) 35.241: [ParNew: 3526K->3526K(4608K), 0.0000261 secs]35.241: [CMS: 3074K->4096K(5120K), 0.0058599 secs] 6600K->6472K(9728K), [Metaspace: 2725K->2725K(1056768K)], 0.0059798 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.247: [GC (CMS Initial Mark) [1 CMS-initial-mark: 4096K(5120K)] 7496K(9728K), 0.0004286 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
35.248: [CMS-concurrent-mark-start]
35.248: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.248: [CMS-concurrent-preclean-start]
35.248: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.248: [CMS-concurrent-abortable-preclean-start]
35.248: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.248: [GC (CMS Final Remark) [YG occupancy: 3482 K (4608 K)]35.248: [Rescan (parallel) , 0.0004590 secs]35.249: [weak refs processing, 0.0000530 secs]35.249: [class unloading, 0.0002242 secs]35.249: [scrub symbol table, 0.0004399 secs]35.249: [scrub string table, 0.0001773 secs][1 CMS-remark: 4096K(5120K)] 7578K(9728K), 0.0014137 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.250: [CMS-concurrent-sweep-start]
35.250: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
35.250: [CMS-concurrent-reset-start]
35.250: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.252: [GC (CMS Initial Mark) [1 CMS-initial-mark: 4096K(5120K)] 7578K(9728K), 0.0008009 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.253: [CMS-concurrent-mark-start]
37.253: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.253: [CMS-concurrent-preclean-start]
37.253: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.253: [CMS-concurrent-abortable-preclean-start]
37.253: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.253: [GC (CMS Final Remark) [YG occupancy: 3482 K (4608 K)]37.253: [Rescan (parallel) , 0.0005667 secs]37.254: [weak refs processing, 0.0001083 secs]37.254: [class unloading, 0.0004152 secs]37.254: [scrub symbol table, 0.0008882 secs]37.255: [scrub string table, 0.0002409 secs][1 CMS-remark: 4096K(5120K)] 7578K(9728K), 0.0023350 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
37.255: [CMS-concurrent-sweep-start]
37.255: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
37.255: [CMS-concurrent-reset-start]
37.255: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.258: [GC (CMS Initial Mark) [1 CMS-initial-mark: 4096K(5120K)] 7578K(9728K), 0.0003935 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.258: [CMS-concurrent-mark-start]
39.258: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.258: [CMS-concurrent-preclean-start]
39.258: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.258: [CMS-concurrent-abortable-preclean-start]
39.258: [CMS-concurrent-abortable-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.258: [GC (CMS Final Remark) [YG occupancy: 3482 K (4608 K)]39.258: [Rescan (parallel) , 0.0003704 secs]39.259: [weak refs processing, 0.0000449 secs]39.259: [class unloading, 0.0002389 secs]39.259: [scrub symbol table, 0.0003930 secs]39.259: [scrub string table, 0.0001374 secs][1 CMS-remark: 4096K(5120K)] 7578K(9728K), 0.0012327 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.260: [CMS-concurrent-sweep-start]
39.260: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
39.260: [CMS-concurrent-reset-start]
39.260: [CMS-concurrent-reset: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
40.248: [GC (Allocation Failure) 40.248: [ParNew: 3482K->3482K(4608K), 0.0000254 secs]40.248: [CMS: 4096K->4096K(5120K), 0.0029742 secs] 7578K->7495K(9728K), [Metaspace: 2725K->2725K(1056768K)], 0.0030902 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
40.251: [Full GC (Allocation Failure) 40.251: [CMS: 4096K->4096K(5120K), 0.0017569 secs] 7495K->7495K(9728K), [Metaspace: 2725K->2725K(1056768K)], 0.0017900 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
40.253: [GC (CMS Initial Mark) [1 CMS-initial-mark: 4096K(5120K)] 7495K(9728K), 0.0004058 secs] [Times: user=0.00 sys=0.01, real=0.00 secs]
40.253: [CMS-concurrent-mark-start]
40.253: [CMS-concurrent-mark: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
40.254: [CMS-concurrent-preclean-start]
40.254: [CMS-concurrent-preclean: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
40.254: [CMS-concurrent-abortable-preclean-start]
Heap
 par new generation   total 4608K, used 3552K [0x00000007bf600000, 0x00000007bfb00000, 0x00000007bfb00000)
  eden space 4096K,  86% used [0x00000007bf600000, 0x00000007bf9783b0, 0x00000007bfa00000)
  from space 512K,   0% used [0x00000007bfa80000, 0x00000007bfa80000, 0x00000007bfb00000)
  to   space 512K,   0% used [0x00000007bfa00000, 0x00000007bfa00000, 0x00000007bfa80000)
 concurrent mark-sweep generation total 5120K, used 4096K [0x00000007bfb00000, 0x00000007c0000000, 0x00000007c0000000)
 Metaspace       used 2757K, capacity 4486K, committed 4864K, reserved 1056768K
  class space    used 297K, capacity 386K, committed 512K, reserved 1048576K

猜你喜欢

转载自blog.csdn.net/morning_china/article/details/79354381