#先参考我之前的一篇文章在服务器进行一个死锁的情景重现#
ps -ef|grep Java
jmap -dump:format=b,file=serviceDump.dat 14640
https://visualvm.github.io/index.html
visualvm_jdkhome="C:/Users/JavaCoder/.jdks/corretto-1.8.0_312"
jhat 用于分析 heapdump 文件,它会建立一个 HTTP/HTML 服务器,让用户可以在浏览器上查看分析结果
C:\Users\SnailClimb>jhat C:\Users\SnailClimb\Desktop\heap.hprof Reading from C:\Users\SnailClimb\Desktop\heap.hprof... Dump file created Sat May 04 12:30:31 CST 2019 Snapshot read, resolving... Resolving 131419 objects... Chasing references, expect 26 dots.......................... Eliminating duplicate references.......................... Snapshot resolved. Started HTTP server on port 7000 Server is ready.
访问 http://localhost:7000/