jmap、jhat查看jvm堆内存信息

打印heap信息
D:\>jmap -histo 4636 > d:log.log


生成heap信息并生成二进制文件
D:\>jmap -dump:live,format=b,file=d:\log.log 4636
Dumping heap to D:\log.log ...
Heap dump file created

查看heap二进制文件
D:\>jhat log.log
Reading from log.log...
Dump file created Wed Mar 14 12:01:45 CST 2012
Snapshot read, resolving...
Resolving 6762 objects...
Chasing references, expect 1 dots.
Eliminating duplicate references.
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.

访问IP:7000查看heap信息

你可能感兴趣的:(java,jvm,dump,JMAP,hat)