知道任何 Java 垃圾收集日志分析工具吗? [英] Know of any Java garbage collection log analysis tools?
问题描述
我正在寻找一种工具或脚本,可以从我的网络应用中获取控制台日志,解析垃圾收集信息并以有意义的方式显示它.
I'm looking for a tool or a script that will take the console log from my web app, parse out the garbage collection information and display it in a meaningful way.
我在带有以下标志的 Sun Java 1.4.2 JVM 上启动:
I'm starting up on a Sun Java 1.4.2 JVM with the following flags:
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
日志输出如下所示:
54.736: [Full GC 54.737: [Tenured: 172798K->18092K(174784K), 2.3792658 secs] 257598K->18092K(259584K), [Perm : 20476K->20476K(20480K)], 2.4715398 secs]
如果我有一个工具可以直观地绘制垃圾收集趋势图,那么理解数百个此类日志条目会容易得多.
Making sense of a few hundred of these kinds of log entries would be much easier if I had a tool that would visually graph garbage collection trends.
推荐答案
IBM 的 GC 工具包完全满足您的要求.
IBM's GC toolkit does exactly what you ask.
https://www.ibm.com/developerworks/java/jdk/tools/gcmv/
我不确定它是否与来自 Sun JVM 的 GC 日志兼容.
I'm not sure if it's compatible with GC logs from Sun's JVM though.
这篇关于知道任何 Java 垃圾收集日志分析工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!