当前位置:网站首页>Quickly analyze oom using mat tools

Quickly analyze oom using mat tools

2022-06-21 10:41:00 Borny Ding Ding

1、 Set the operating parameters
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -jar xxx.jar
-XX:+HeapDumpOnOutOfMemoryError, Set when memory overflows , Then the heap information is exported
-XX:HeapDumpPath=/tmp/heapdump.hprof, Specify the path or file name when exporting heap information , If not set HeapDumpPath Parameters , The default is the current directory and file name
2、MAT Tools
Download address ,https://www.eclipse.org/mat/downloads.php
function MAT Analyze the tool and open the file

原网站

版权声明
本文为[Borny Ding Ding]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221439328586.html