On Wednesday, November 24, 2010 at 5:03:31 PM UTC-8, markspace wrote:
On 11/24/2010 10:57 AM, Federico Cozzi wrote:
I hoped that matching java thread-IDs to native linux PIDs was
easier...
Just found this poking around late today. It describes how to match a Solaris thread to a Java thread. I wonder if other 'nix are similar?
<http://www.camelrichard.org/matching-java-thread-nid-tid-solaris-10-threads-using-pstack>
It seems based on the "nid" of the Java thread dump. nid = native ID perhaps?
9 years later.... I just confirmed that yes: "nid" in jcmd threaddump output from JDK 1.8 is indeed a hex encoded value of the Linux system PID on an Ubuntu server. We had a thread in the threaddump nid=760 and this correlated to Linux PID 1888 correctly.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)