How does one know how many thread a process owns?

Giorgos Keramidas keramida at freebsd.org
Thu Apr 14 02:19:06 PDT 2005


On 2005-04-14 10:37, Jiawei Ye <leafy7382 at gmail.com> wrote:
>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.
>
> 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?



More information about the freebsd-current mailing list