IBM HeapAnalyzer是一款免费的JVM内存堆的图形分析工具,它可以有效的列举堆的内存使用状况,帮助分析Java内存泄漏的原因。
下载解压后有一个ha413.jar
运行环境要求:
1、使用 Java 2 Platform,JDK 1.6或以上来运行IBM HeapAnalyzer
2、然后配置好环境变量
运行命令:
<Java path>java –Xmx[heapsize] –jar ha<HeapAnalyzer version>.jar <heapdump file>
举例:
/usr/java60/bin/java –Xmx1000m –jar ha146.jar heapdump1234.txt
If there’s java.lang.OutOfMemoryError while you are processing heapdumps, please try increasing the maximum heap size (-Xmx) value to give the JVM more memory.
Maximum heap size should not be larger than the size of available physical memory size for this tool due to performance issue.
发表评论