From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DyOdC-0000pS-5L for garchives@archives.gentoo.org; Fri, 29 Jul 2005 06:46:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6T6ichh004538; Fri, 29 Jul 2005 06:44:38 GMT Received: from smtp110.mail.sc5.yahoo.com (smtp110.mail.sc5.yahoo.com [66.163.170.8]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6T6f6o6028573 for ; Fri, 29 Jul 2005 06:41:07 GMT Received: (qmail 33324 invoked from network); 29 Jul 2005 06:41:43 -0000 Received: from unknown (HELO ?192.168.50.105?) (richard?j?fish@212.180.33.26 with plain) by smtp110.mail.sc5.yahoo.com with SMTP; 29 Jul 2005 06:41:43 -0000 Message-ID: <42E9D05A.4060704@asmallpond.org> Date: Fri, 29 Jul 2005 08:44:42 +0200 From: Richard Fish User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050723) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] top and/or ps without all the java threads References: <6474B60C-9AC4-4069-B49A-9632358A0D2D@shire.net> In-Reply-To: <6474B60C-9AC4-4069-B49A-9632358A0D2D@shire.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 458fe442-625a-4df6-ac67-3453fb731638 X-Archives-Hash: 0e6f8b6af9a18bce2796130f4dd6e963 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