Memory leak analysis by jhat

dump heap information

jcmd

jmap

jconsole

jvisualVM and much more

Virtual Machine Additions -XX: HeapDumpOnOutOfMemoryError option, throwing OutOfMemoryError, will automatically perform a heap dump.

Analysis of the dump file

jhat -J-Xmx512M dump.hprof

Description: Sometimes dump out a big heap at startup will be reported insufficient heap space error, you can add parameters: jhat -J-Xmx512m. The memory size can be set according to their own computer.

image-20200103102032963

Ip input port in the browser (in the above has been given the port log)

image-20200103102129564

This page contains a variety of functions
following the implementation of several

All classes including platform

The stack is displayed all class information (not including the default class for the Java platform)

image-20200103102634853

All Members of the Rootset

From the root set of objects can refer to

image-20200103102859428</div></body></html>

Guess you like

Origin blog.csdn.net/dataiyangu/article/details/103833346