1、jmap -dump:format=b,file=/root/testHead.hprof 25606获得快照信息
2、jhat /root/testHead.hprof
[root@rzx168 ~]# jhat testHead.hprof
Reading from testHead.hprof...
Dump file created Tue Apr 03 19:22:46 CST 2018
Snapshot read, resolving...
Resolving 516094 objects...
Chasing references, expect 103 dots.......................................................................................................
Eliminating duplicate references.......................................................................................................
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.
3、浏览器访问 http://localhost:7000