D:>jps
684
8136 Jps

D:>jmap -dump:format=b,file=heap.bin 684
Dumping heap to D:heap.bin …
Heap dump file created

D:>jhat -port 7000 heap.bin
Reading from heap.bin…
Dump file created Mon Sep 18 14:49:50 CST 2011
Snapshot read, resolving…
Resolving 119495 objects…
Chasing references, expect 23 dots…………………..
Eliminating duplicate references…………………..
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.

jhat

转载请注明:WebLogic Android 博客 » 使用JDK自带工具jps,jmap和jhat分析内存数据