问题描述
我正在寻找一种工具或脚本,它会从我的web应用程序中取得控制台日志,解析出垃圾收集信息并以有意义的方式显示它。
-verbose:gc - XX:+ PrintGCTimeStamps -XX:+ PrintGCDetails
日志输出如下所示:
$ (完全GC 54.737:[终身:172798K-> 18092K(174784K),2.3792658秒] 257598K-> 18092K(259584K),b$ b
[Perm:20476K-> 20476K(20480K)],2.4715398 secs]
如果我有一个工具可以直观地显示垃圾收集的趋势,那么这些类型的日志条目中的数百种会更容易。
GC工具包完全符合您的要求。
我不确定它是否与来自Sun的JVM的GC日志兼容。 >
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.
I'm starting up on a Sun Java 1.4.2 JVM with the following flags:
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
The log output looks like this:
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's GC toolkit does exactly what you ask.
https://www.ibm.com/developerworks/java/jdk/tools/gcmv/
I'm not sure if it's compatible with GC logs from Sun's JVM though.
这篇关于了解任何Java垃圾收集日志分析工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!