meaning [gc cat], a java gc log analyser, currently support CMS + ParNew gc collector.
mvn package
java -cp gcat.jar io.gcat.Gcat {gc.log}
- gc duration
- gc count
- avg|max gc pause time
- avg|min gc interval
- JVM Heap Size 年轻代,老年代,meta各区的总大小,峰值大小
- 吞吐量
- 延迟(平均暂停时间,最大暂停时间)
- Gc暂停时长分布
- CMS各阶段耗时 累计时长、占比
- gc原因占比
example output:
Heap GC Time:
avg: 72 ms
max: 25490 ms(at 2019-05-09T02:05:30.342+08, epoch: 1557338730342)
Heap GC Interval:
avg: 3551 ms
min: 10 ms(at 2019-05-09T05:06:37.091+08, epoch: 1557349597091)
gc duration: duration between first valid gc log timestamp to the last valid gc log timestamp.
gc count: yong gc + old gc count.
Minor GC、Major GC和Full GC之间的区别
Understanding the Java Garbage Collection Log
Understanding Garbage Collection Logs