How does one know how many thread a process owns?

Jiawei Ye leafy7382 at gmail.com
Wed Apr 13 19:37:12 PDT 2005


On 4/14/05, David Xu <davidxu at freebsd.org> wrote:
> It can only show individual threads in process,  but the guy only wants
> to see
> the threads count.
> 
> 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

-- 
"Without the userland, the kernel is useless."
               --inspired by The Tao of Programming


More information about the freebsd-current mailing list