From owner-freebsd-current@FreeBSD.ORG Thu Apr 14 02:37:12 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39CE916A4D0 for ; Thu, 14 Apr 2005 02:37:12 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8212243D53 for ; Thu, 14 Apr 2005 02:37:11 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so297766rng for ; Wed, 13 Apr 2005 19:37:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EwhOfNJhjwLS8ogWhQVv9hn5vuszsDyFCVyoImx3Osat9J3HVpYyJQm4M/ogmWGr4SF8oxdBxyTK5+y9rP3D1H6nfRyTAOfKYYwiWyLTeLnoST5IbA6wrdL47EjNEemDLnSQxapDaropXiieLtx/FBGWUYY0h7FcczaGD7c79Zo= Received: by 10.38.155.3 with SMTP id c3mr1300170rne; Wed, 13 Apr 2005 19:37:11 -0700 (PDT) Received: by 10.38.22.48 with HTTP; Wed, 13 Apr 2005 19:37:10 -0700 (PDT) Message-ID: Date: Thu, 14 Apr 2005 10:37:10 +0800 From: Jiawei Ye To: David Xu In-Reply-To: <425DC1DB.4090106@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <425CC7F8.3030803@samsco.org> <425CD009.6040208@freebsd.org> <20050413132603.GA39006@orion.daedalusnetworks.priv> <425D2163.4090603@freebsd.org> <425C7D0D.5000302@elischer.org> <425DC1DB.4090106@freebsd.org> cc: freebsd-current@freebsd.org cc: Julian Elischer cc: Giorgos Keramidas Subject: Re: How does one know how many thread a process owns? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiawei Ye List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 02:37:12 -0000 On 4/14/05, David Xu wrote: > It can only show individual threads in process, but the guy only wants > to see > the threads count. >=20 > David Xu Seems that I ought to explain why I need this. I do Java programming on FreeBSD (well, porting some of our server side components over). It is not realistic to view over 2000 threads in top. I just need to know the thread count in the parent process to get a grip on how our process is doing. Say that the thread count >1000 is normal, and if it drops to 500 then I have to fire up a debugger or something like that. Jiawei Ye --=20 "Without the userland, the kernel is useless." --inspired by The Tao of Programming