LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Show processes, not threads (https://www.linuxquestions.org/questions/linux-newbie-8/show-processes-not-threads-333412/)

Martin Strand 06-14-2005 08:27 AM

Show processes, not threads
 
How can I show all running processes (not threads)?
Top and ps don't seem to distinguish between processes and threads, which makes it hard to determine how much cpu/memory each app is consuming. I'm using Apache's worker mpm and according to top, each of the ~100 threads eats 12mb! ;)

-Martin

OneManArmy 06-14-2005 09:46 AM

Just a shot in the dark, in the man page ps has the following options:

Code:

THREAD DISPLAY
      -L          show threads, possibly with LWP and NLWP columns
      -T          show threads, possibly with SPID column
      -m          show threads after processes
      H            show threads as if they were processes
      m            show threads after processes

Hope this helps.


All times are GMT -5. The time now is 07:41 PM.