Core dump equivalence for Java
Posted
by m3rLinEz
on Stack Overflow
See other posts from Stack Overflow
or by m3rLinEz
Published on 2010-03-20T09:25:04Z
Indexed on
2010/03/20
9:31 UTC
Read the original article
Hit count: 461
So far I have learned about generating thread dump and heap dump using jstack
and and jmap
respectively.
However, jstack
thread dump contains only texts describing the stack on each thread. And opening heap dump (.hprof file) with Java VisualVM only shows the objects allocated in the heap.
What I actually want is to be able see the stack, to switch to particular stack frame, and watch local variables. This kind of post-mortem debugging can be done normally with tools like WinDbg, gdb and a core file (for a native C++ program.)
I wonder if such 'core' file (which will allow me to debug in non-live environment) exists in Java?
© Stack Overflow or respective owner