Two ways to get the JVM dump file 

Two ways to get the JVM dump file  

  1. Two additional parameters when starting JVM:

    Health heap dump occurs when OOME:

    -XX:+HeapDumpOnOutOfMemoryError

    Health piles of documents Address:

    -XX:HeapDumpPath=/home/heap.hprof

  2. Discovery process by executing instructions before the exception, the JVM direct current generated dmp file, 6214 is the JVM process number
    jmap -dump: format = b, file = / home / heap.hprof 6214

https://www.cnblogs.com/myseries/p/10827195.html

Guess you like

Origin www.cnblogs.com/lazy-sang/p/12027841.html