Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-14-2005, 08:27 AM   #1
Martin Strand
LQ Newbie
Registered: Apr 2005
Posts: 16

Rep: Reputation: 0
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!

Old 06-14-2005, 09:46 AM   #2
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem with threads creates 300+ zombie processes zahadumy Programming 1 11-27-2005 08:15 PM
Piping keyboard input to two processes (or threads) caffeinebot Programming 3 05-17-2005 05:51 PM
Stunnel does not show up in processes after running it. Doctor Nick Linux - Software 9 08-07-2004 09:53 PM
UserCP - show subscribed threads icehenge LQ Suggestions & Feedback 5 03-28-2004 08:07 AM
Threads showing up as processes on ps command eDubster Linux - General 1 04-28-2003 05:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration