From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,85ee756bfa565244 X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Performance Monitoring Date: 1998/09/10 Message-ID: <35F7D17C.6CA15087@brighttiger.com>#1/1 X-Deja-AN: 389737703 Content-Transfer-Encoding: 8bit References: <6t7ae1$4e6$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@digex.net X-Trace: newsreader.digex.net 905433507 207.86.119.34 (Thu, 10 Sep 1998 09:18:27 EDT) Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Thu, 10 Sep 1998 09:18:27 EDT Newsgroups: comp.unix.osf.osf1 vinny_in_vancouver@my-dejanews.com wrote: > Hello, > > I'm doing performance monitoring on my alpha machine. > One of the things I need to do is to test how my > application will behave when it can no longer create > threads due to the system limit being reached. I need > a tool which will tell me how many threads are running > in the system at a time. Also, if there's a tool which > can show which applications have the most threads, that > would be useful as well. Do you know of any tool or any > way (I'm willing to write up code) which will be able > to help me achieve my goals? Thanks in advance for the > responses. You can get way more complicated than this simple suggestion, but 'ps -m' will show you all the kernel threads in a process. For example $ ps -mp 0 Will show all the internal kernel threads -- they hang out in task 0. Maybe something like the TOP program shows threads or can be easily modified to show threads. It probably used the task_info and table system calls, or maybe /proc, to get the scoop on all processes. __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547