Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #4302
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2019-07-31 15:51 -0700 |
| References | <e5b60e38-a25e-4e9f-bc26-e5a243915f32@j9g2000vbr.googlegroups.com> <mfGdnatpxqufF3fRnZ2dnUVZ_gGdnZ2d@earthlink.com> <icej1i$3ia$1@news.eternal-september.org> <912b915d-9ceb-402b-b0af-aaad1f7af3c0@w18g2000vbe.googlegroups.com> <ickcl4$5el$1@news.eternal-september.org> |
| Message-ID | <6dcd70bc-48b2-45e5-a2f3-10abe732bda2@googlegroups.com> (permalink) |
| Subject | Re: Matching Java thread-ID to native Linux PID - Sun Java 1.5.x |
| From | skelly@relianceco.com |
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.
Back to comp.lang.java.help | Previous | Next | Find similar
Re: Matching Java thread-ID to native Linux PID - Sun Java 1.5.x skelly@relianceco.com - 2019-07-31 15:51 -0700
csiph-web