How to collect heap dumps of any java process

送分小仙女□ 提交于 2019-12-06 21:18:58

问题


I am new to Heaps , can anyone suggest how can i take heap dump of any java process (like Jmeter). I read about jmap command , but i am not getting where and how to execute / write it (in eclipse or cmd). It might be a very basic question but still suggestions are requested.Can i download jmap.exe and jhat.exe from any where? Thank You


回答1:


Here is the command:

<JDK_HOME>/jmap -F -dump:live,format=b,file=<file_name.hprof> <process_id>

You can mention the file location here in this command.



来源:https://stackoverflow.com/questions/38783251/how-to-collect-heap-dumps-of-any-java-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!