JVM dump和分析

原文链接:https://www.dubby.cn/detail.html?id=9098

1、dump

jmap -dump:live,format=b,file=~/Desktop/dump.hprof 1110

其他参数意义:

Usage:
    jmap [option] 
        (to connect to running process)
    jmap [option] 
        (to connect to a core file)
    jmap [option] [server_id@]
        (to connect to remote debug server)

where 

2、分析内存

下载HeapAnalyzer,下载完更名为ha453.jar,执行:

java -jar ha453.jar

打开dump.hprof:

image
image
image

你可能感兴趣的:(JVM dump和分析)