If I take dump, using Windbg, of Java process running on Windows
Can I analyze (easly?) the Java heap, objects, and threads?
Just like I could do with SOS for .Net process?
Otherwise – how can I offline debug a problem happening on production systems?
Thanks!
Best Answer
Windows minidumps (.dmp) can be used with these utilities:
jvisualvm
utility from JDK can get you both thread dump and heap dumpjvisualvm
Applications
pane, findVM Coredumps
Add VM Coredump...
.dmp
minidump fileOK
VM Coredumps
Thread Dump
Heap Dump
jstack
utility from JDK can show Java stack from Windows minidumps (.dmp)Here's a batch script for that:
jmap
utility from JDK can convert Windows minidump (.dmp) to java heap dump (.hprof)Here's a batch script for that: