-   Linux - Newbie (
-   -   Show processes, not threads (

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! ;)


OneManArmy 06-14-2005 09:46 AM

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


      -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.