java heap dump 使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/guotong1988/article/details/82753675

linux上

    jmap -dump:format=b,file=heap.hprof pid

出一个heap.hprof文件
然后在eclipse market搜MAT装上eclipse memory analyzer
打开这个heap.hprof文件

猜你喜欢

转载自blog.csdn.net/guotong1988/article/details/82753675