Friday, 30 October 2015

What is Java Heap Dump and How to find it in java

C:\Users>jps -l -m
8768 org.jboss.Main
9972 thread.Deadlock
1204 sun.tools.jps.Jps -l -m
10212 sun.tools.jconsole.JConsole 9972
1224

C:\Users>jps -l -m
8768 org.jboss.Main
9972 thread.Deadlock
3520 sun.tools.jps.Jps -l -m
10212 sun.tools.jconsole.JConsole 9972
1224

C:\Users>jmap  -dump:file=GarbageCollection.map 9972
Dumping heap to C:\Users\Synergetic\GarbageCollection.map ...
Heap dump file created

"jhat" - Java heap analysis tool or heap dump file browser: Parses a Java heap dump file and launches a Web server. "jhat" enables you to browse heap dump files using your favorite webbrowser. 

C:\Users>jhat GarbageCollection.map
Reading from GarbageCollection.map...
Dump file created Fri Oct 30 14:27:58 PDT 2015
Snapshot read, resolving...
Resolving 74774 objects...
Chasing references, expect 14 dots..............
Eliminating duplicate references..............
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.



No comments:

Post a Comment