hprof-conv xxx.hprof xxx-new.hprof
http://www.eclipse.org/mat/这里下载 有eclipse插件版和单独版
使用单独版需要使用最上面的命令将文件转换一下
单独版可以比较两个hprof文件,使用方法如下:
- Open the first HPROF file (using File > Open Heap Dump).
- Open the Histogram view.
- In the Navigation History view (use Window > Navigation History if it's not visible), right click on histogram and selectAdd to Compare Basket.
- Open the second HPROF file and repeat steps 2 and 3.
- Switch to the Compare Basket view, and click Compare the Results (the red "!" icon in the top right corner of the view).