GC日志分析工具汇总

来源:互联网 发布:学java有前途吗 编辑:程序博客网 时间:2024/06/06 03:14
Garbage Cat
Garbage collection log analyzer for OpenJDK and Sun JDK.
https://code.google.com/a/eclipselabs.org/p/garbagecat/wiki/Documentation
支持OpenJDK、Sun JDK 1.5 and higher
命令行工具
报告包含三部分:
 (1) Bottlenecks, (2) Summary, and (3) Unidentified log lines.




HP Jmeter
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPJMETER
http://www.javaperformancetuning.com/tools/hpjtune/index.shtml
Identify and diagnose performance problems in Java applications running on HP-UX or on NonStop servers
Improve garbage collection performance
Analyze Java heap dumps
Monitor live Java applications and analyze profiling data
Capture extended profiling data with zero preparation when using JDK/JRE 5.0.04 or later
Capture detailed garbage collection data with zero preparation when using JDK/JRE 5.0.14 or later or JDK/JRE 6.0.02 or later or JDK/JRE 7.0.00 or later
Run the HPjmeter console on HP-UX, Linux, and Windows systems
貌似只能打开由以下参数生成的GC log, -verbose:gc -Xloggc:gc.log,添加其他参数生成的gc.log无法打开。
jvisualvm还可以heapdump出对应hprof文件(默认存放路径:监控的服务器 /tmp下),利用HPjmeter可以对其进行分析


GCViewer
http://www.tagtraum.com/gcviewer.html
支持
Sun JDK 1.4/1.5 with the options -Xloggc:<file> [-XX:+PrintGCDetails]
Sun JDK 1.2.2/1.3.1/1.4 with the option -verbose:gc
IBM JDK 1.3.1/1.3.0/1.2.2 with the option -verbose:gc
IBM iSeries Classic JVM 1.4.2 with option -verbose:gc
HP-UX JDK 1.2/1.3/1.4.x with the option -Xverbosegc
BEA JRockit 1.4.2/1.5 with the option -verbose:memory
Best results are achieved with: -Xloggc:<file> -XX:+PrintGCDetails
貌似不支持1.6以后的版本


gclogviewer
A free open source tool to visualize data produced by the Java VM options -Xloggc:<file>
https://code.google.com/p/gclogviewer/


GC Analyzer
Analysis of VerboseGC Traces
http://glezen.org/gca/index.html
支持JDK 1.4.2
支持命令行和界面




PrintGCStats
GC日志分析脚本
http://chenjianjx.iteye.com/blog/1681347










参考:
http://blog.csdn.net/gzh0222/article/details/8223277

原创粉丝点击