public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] top and/or ps without all the java threads
@ 2005-07-29  5:58 Chad Leigh -- Shire.Net LLC
  2005-07-29  6:44 ` Richard Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Chad Leigh -- Shire.Net LLC @ 2005-07-29  5:58 UTC (permalink / raw
  To: gentoo-user

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.

Thanks
Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad@shire.net


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] top and/or ps without all the java threads
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Fish @ 2005-07-29  6:44 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-29  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox