【转帖】Automated Heap Dump Analysis: Finding Memory Leaks with One Click

输出heapdump的方法:

1.jmap -dump:format=b,file=heap.hprof <processid>

2.在java命令行中增加-XX:+HeapDumpOnOutOfMemoryError,让JVM在内存溢出时自动输出heapdump

 

Automated Heap Dump Analysis: Finding Memory Leaks with One Click

 

link: http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/27/automated-heap-dump-analysis-finding-memory-leaks-with-one-click/

你可能感兴趣的:(java,eclipse,jvm)