From owner-freebsd-current@FreeBSD.ORG Thu Apr 14 09:19:06 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 91BEA16A4CE; Thu, 14 Apr 2005 09:19:06 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85EB843D5A; Thu, 14 Apr 2005 09:19:05 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j3E9HwqZ025293; Thu, 14 Apr 2005 12:17:59 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j3E9J6L4023505; Thu, 14 Apr 2005 12:19:06 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost)j3E9J62v023461; Thu, 14 Apr 2005 12:19:06 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Thu, 14 Apr 2005 12:19:05 +0300 From: Giorgos Keramidas To: Jiawei Ye Message-ID: <20050414091905.GC2540@orion.daedalusnetworks.priv> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-current@freebsd.org cc: David Xu cc: Julian Elischer 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 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 09:19:06 -0000 On 2005-04-14 10:37, Jiawei Ye wrote: >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. > > 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. I've only reserved 3 characters for the thread field column, so this could still be a bit of a problem. Would a 4 or 5-column width be more realistic?