Tracing VM Threads on Linux

Mark R Maxey Mark_R_Maxey at Raytheon.Com
Wed Apr 29 06:19:35 PDT 2009

Thanks a bunch.  This is exactly what I was looking for.

Mark Maxey
Raytheon, Garland
Mark_R_Maxey at

Volker Simonis <volker.simonis at> 
04/29/2009 07:17 AM

Mark R Maxey <Mark_R_Maxey at>
hotspot-dev at
Re: Tracing VM Threads on Linux

Hi Mark,

you can for example use "jstack <pid>" to get a stack dump of all
threads which are running in a VM. Among other information, the thread
dump contains the thread name and a field "nid" which corresponds to
the SPID you see when you do "ps -T".

Hope this helps,

On 4/27/09, Mark R Maxey <Mark_R_Maxey at> wrote:
> Is there a way to correlate a SUSE 10 PID to a Java thread?  If you do a 
> -T", you can see a unique SPID for each Java thread.  However, the CMD
> column is all "java".
> We periodically like to do an strace on a running JVM.  It is nice to be
> able to correlate the information we see there back to our debug logs 
> contain the Java thread name & group name.
> Thanks!
>  Mark Maxey
>  Raytheon, Garland
>  580/2/P22-1
>  (972)205-5760
>  Mark_R_Maxey at

The following line is added for your protection and will be used for 
analysis if this message is reported as spam:

(Raytheon Analysis: IP=; e-from=volker.simonis at; 
from=volker.simonis at; date=Apr 29, 2009 12:17:41 PM; subject=Re: 
Tracing VM Threads on Linux)

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the hotspot-dev mailing list