Use jdk own tools jvisualvm analyze the memory dump file

1. Obtain the dump file

Create a process PID = dump file 16231 using the following command, named order.hprof

jmap -dump:format=b,file=order.hprof 16231

  Download the file locally.

2. jvisualvm.exe charged under jdk bin directory order.hprof

 

 

 Analysis of the corresponding object occupies memory

 

Guess you like

Origin www.cnblogs.com/wangzun/p/11613051.html