GCViewer垃圾回收日志文件分析工具

联合创作 · 2023-09-27 04:25

tagtraum industries GCViewer 一个分支,前者2008年已停止更新,一个查看并分析垃圾回收日志文件的小工具.支持Oracle, Sun, IBM, HP and BEA的JVM. 分支增加了Oracle's java 1.6 + 1.7 gc日志(包括G1)
 

GNU LGPL协议.

双击 gcviewer-1.3x.jar就可以运行 GCViewer (gui) ,或者命令行运行(需要java 1.7 vm):

 java -jar gcviewer-1.3x.jar 

命令行分析日志,并产生报表:

java -jar gcviewer-1.3x.jar gc.log summary.csv [chart.png]

 

Supported verbose:gc formats are:

- Oracle JDK 1.8 (experimental support) -Xloggc: [-XX:+PrintGCDetails] [-XX:+PrintGCDateStamps]
- Sun / Oracle JDK 1.7 with option -Xloggc: [-XX:+PrintGCDetails] [-XX:+PrintGCDateStamps]
- Sun / Oracle JDK 1.6 with option -Xloggc: [-XX:+PrintGCDetails] [-XX:+PrintGCDateStamps]
- Sun JDK 1.4/1.5 with the option -Xloggc: [-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/1.6 with the option -verbose:memory [-Xverbose:gcpause,gcreport] [-Xverbosetimestamp]

Best results are achieved with: -Xloggc: -XX:+PrintGCDetails -XX:+PrintGCDateStamps

浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报