首页 > 其他 > 详细

hprof内存文件分析

时间:2020-05-31 16:26:19      阅读:59      评论:0      收藏:0      [点我收藏+]

 

 

获取hprof命令
jmap -dump:format=b,file=/path/file.hprof pid
idea插件篇之java内存分析工具(JProfiler)
Eclipse下的mat差距进行分析 http://www.eclipse.org/mat
jhat C:\Users\xingminghui\file.hprof -J -Xmx512m http://localhost:7000/ http://localhost:7000/showInstanceCounts/includePlatform/

jmap -dump:format=b,file=mem.dat 7528 #将内存使用的详细情况输出到mem.dat 文件
通过 jhat -port 7000 C:\Users\xingminghui\mem.dat 可以将mem.dat的内容以web的方式暴露到网络,访问http://ip-server:7000查看。

 

 


window获取进程命令
netstat -ano | findstr 8081

Eclipse Memory Analyzer,查看对象树和对象空间占用非常的方便
tomcat 查看内存占用量 https://blog.csdn.net/jkler_doyourself/article/details/6033500

https://www.cnblogs.com/KingIceMou/p/6967754.html 内存监控
使用sudo -u admin -H jmap -dump:format=b,file=文件名.hprof pid 来dump内存,生成dump文件
jvisualvm 工具里面有 Heap Dump的功能
jmap -dump:format=b,file=file.hprof 7528
C:\Users\xingminghui\file.hprof

 

技术分享图片

 

 

http://localhost:7000/showInstanceCounts/includePlatform/

 技术分享图片

 

hprof内存文件分析

原文:https://www.cnblogs.com/xingminghui111/p/13019243.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!