How to get heap dump in case of outofmemory
大家讲道理
大家讲道理 2017-05-27 17:41:34
0
1
623

tomcat is outofmemory and unresponsive on the server. Is there any way to know what is occupying memory? Please recommend tools and methods.

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
大家讲道理

JDK_HOME/bin/
Execute jmap -dump:format=b,file=/home/longhao/heamdump.out <pid>
You can also pass -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${DOMAIN_HOME}/logs/ mps"
dump and download it to the local system
Use Memory Analyzer to analyze

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!