SUMMARY: how many threads is a particular user using?

From: Mireau, Devin <DMireau_at_caiso.com>
Date: Tue, 01 Feb 2000 08:36:58 -0800

Thanks to Nikola Milutinovic & Udo de Boer who referred me to the 'ps'
switch that will display all threads for a user using the following:

ps -m -A -o pid,tty,user,command

I was then able to grep for a particular user and pipe it through 'wc' to
see how many for that user.

thanks a lot,
Devin Mireau


> -----Original Message-----
>
> Greetings managers,
>
> Does anyone know of a way to tell how many threads a particular user has
> running? I want to determine if we actually hit a real ceiling regarding
> the kernel parameter "maxuthreads" or if the application had some problems
> and eventually reached this maximum value due to an application error.
> Here is some of the output from kernel.log.
>
> Jan 30 06:00:03 SYSTEMNAME vmunix: thread_create() failed for pid 11964:
> maxuthreads (=1560) exceeded for uid 305.
> Jan 30 06:01:02 SYSTEMNAME vmunix: thread_create() failed for pid 12129:
> maxuthreads (=1560) exceeded for uid 305.
> Jan 30 06:01:02 SYSTEMNAME vmunix: WARNING -- process concurrency may be
> reduced for process 12083, uid 305:
> Jan 30 06:01:02 SYSTEMNAME vmunix: number of blocked threads exceeds
> maxuthreads quothread_create() failed for pid 12087: maxuthreads (=1560)
> exceeded for uid 305.
>
> Thanks in advance. I will summarize,
>
> Devin
Received on Tue Feb 01 2000 - 16:37:50 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT