From: Richard Fish <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] top and/or ps without all the java threads
Date: Fri, 29 Jul 2005 08:44:42 +0200 [thread overview]
Message-ID: <42E9D05A.4060704@asmallpond.org> (raw)
In-Reply-To: <6474B60C-9AC4-4069-B49A-9632358A0D2D@shire.net>
Chad Leigh -- Shire.Net LLC wrote:
> Hi
>
> Is there a way to get a ps or top like display of processes that
> shows just the master process and not all the threads as separate
> processes for java programs? This is on a 2.4.30 hardened gentoo
> system.
For 2.4.30, I don't know of any way to do this, because as far as the
kernel is concerned, every thread really is a separate process. They
are just communicating via signals and shared memory. I think it is
pretty much impossible for another process like top or ps to figure out
whether something is a 'thread' or a 'process' with 2.4.
If you use 2.6 and nptl+nptlonly, this is handled automatically. Notice
my ps output for thunderbird:
carcharias rjf # ps -A xw -f | grep thunderbird
rjf 978 963 0 07:06 ? Sl 0:50
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
carcharias rjf # ps -A xw -f -L | grep thunderbird
rjf 978 963 978 0 4 07:06 ? Sl 0:49
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 982 0 4 07:06 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 984 0 4 07:06 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 14672 0 4 08:38 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
-Richard
--
gentoo-user@gentoo.org mailing list
prev parent reply other threads:[~2005-07-29 6:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-29 5:58 [gentoo-user] top and/or ps without all the java threads Chad Leigh -- Shire.Net LLC
2005-07-29 6:44 ` Richard Fish [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E9D05A.4060704@asmallpond.org \
--to=bigfish@asmallpond.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox