LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-14-2005, 07: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!

-Martin
 
Old 06-14-2005, 08:46 AM   #2
OneManArmy
Member
 
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:

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.
 
  


Reply



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 07:15 PM
Piping keyboard input to two processes (or threads) caffeinebot Programming 3 05-17-2005 04:51 PM
Stunnel does not show up in processes after running it. Doctor Nick Linux - Software 9 08-07-2004 08:53 PM
UserCP - show subscribed threads icehenge LQ Suggestions & Feedback 5 03-28-2004 07:07 AM
Threads showing up as processes on ps command eDubster Linux - General 1 04-28-2003 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 AM.

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