Supported Formats
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
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
GCViewer is a free open source tool to visualize data produced by the Java VM options -verbose:gc and -Xloggc:<file>. It also calculates garbage collection related performance metrics (throughput, accumulated pauses, longest pause, etc.). This can be very useful when tuning the garbage collection of a particular application by changing generation sizes or setting the initial heap size. See here for a useful summary of garbage collection related JVM parameters.
http://www.tagtraum.com/gcviewer.html
http://www.javaperformancetuning.com/tools/gcviewer/index.shtml
Java的垃圾收集Log信息的可视化工具。
-verbose:class
输出jvm载入类的相关信息。
大量加载class会造成Perm space out of memory.
-XX:PermSize=64MB 最小尺寸,初始分配
-XX:MaxPermSize=256MB 最大允许分配尺寸,按需分配
过小会导致:java.lang.OutOfMemoryError: PermGen space
本文介绍了一款名为GCViewer的开源工具,该工具能够帮助开发者解析并可视化Java虚拟机产生的垃圾回收日志,便于调优。支持多种JVM选项如-verbose:gc和-Xloggc,提供包括吞吐量、累积暂停时间等在内的性能指标。
1556

被折叠的 条评论
为什么被折叠?



