GCJ Thread Dump
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Wed Feb 9 16:09:00 GMT 2005
Hi Mark,
> > Is there any way to get a thread dump from a running GCJ application in the
> > same way you can send a kill -3 signal to the Sun JVM?
> No, there isn't, and it would be extremely hard to do. Whan we have a
> problem like this, we attach gdb to the process.
This not my alley, as I don't know what the outcome of kill -3 does to
Sun's JVM. However, can you perchance use the dump mechanism that David
Daney mentions in the thread
http://gcc.gnu.org/ml/java/2005-02/msg00037.html:
"I have code that does a heap dump that I would be good to put in the
interface as well. Given the heap dump and a post processing program we
generate things like the number and type of each reachable object as
well as the value of each String."
// Martin
More information about the Java
mailing list