M
Morten Simonsen
Hi
I want to retrieve the callstack from a Thread which is running, but for
some reason has gone
into "hang-mode" (usually waiting for some I/O). The reason for this is that
I have to
terminate this Thread, but I would like to know in which method the Thread
got stuck, so
that I can check this "problem area".
So far I have only managed to produce a callstack if I throw an exception
and manipulate
Throwable's printStackTrace()-method. This cannot be done if the Thread is
stuck and it
will not do to use this method for every step in the Thread and preserve the
results because
of its enormous performance impact.
So is there any other way? Or is this kind of information hidden away?
Morten Simonsen
I want to retrieve the callstack from a Thread which is running, but for
some reason has gone
into "hang-mode" (usually waiting for some I/O). The reason for this is that
I have to
terminate this Thread, but I would like to know in which method the Thread
got stuck, so
that I can check this "problem area".
So far I have only managed to produce a callstack if I throw an exception
and manipulate
Throwable's printStackTrace()-method. This cannot be done if the Thread is
stuck and it
will not do to use this method for every step in the Thread and preserve the
results because
of its enormous performance impact.
So is there any other way? Or is this kind of information hidden away?
Morten Simonsen