Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #4302

Re: Matching Java thread-ID to native Linux PID - Sun Java 1.5.x

X-Received by 2002:a37:ac1a:: with SMTP id e26mr85046574qkm.231.1564613511596; Wed, 31 Jul 2019 15:51:51 -0700 (PDT)
X-Received by 2002:a5b:64a:: with SMTP id o10mr52132633ybq.188.1564613511440; Wed, 31 Jul 2019 15:51:51 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!b26no22636qtq.0!news-out.google.com!a5ni703qtd.0!nntp.google.com!b26no22629qtq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.help
Date Wed, 31 Jul 2019 15:51:50 -0700 (PDT)
In-Reply-To <ickcl4$5el$1@news.eternal-september.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2601:647:cc00:142c:556c:cd6b:86c8:ff7c; posting-account=UDw1TgoAAACHWK5Si0wloY-1miL74ahX
NNTP-Posting-Host 2601:647:cc00:142c:556c:cd6b:86c8:ff7c
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>
User-Agent G2/1.0
MIME-Version 1.0
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
Injection-Date Wed, 31 Jul 2019 22:51:51 +0000
Content-Type text/plain; charset="UTF-8"
Lines 15
Xref csiph.com comp.lang.java.help:4302

Show key headers only | View raw


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


Thread

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