LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2005, 03:53 PM   #1
gauntalus
Member
 
Registered: May 2004
Location: Hillsdale, MI
Distribution: gentoo 2004.3
Posts: 135

Rep: Reputation: 15
Lots of Processes in system monitor


I was just looking through my system monitor and it seems like its listing a couple things several times, for instance, I have 4 instances of "gweather-applet-2" running, and 3 instances of "firefox-bin", but I only have one firefox window open, and to my knowledge only one weather applet :-) Is there anything that could be causes processes to pile up? Could someone suggest a good way to keep tabs on your process listing and how to know what should and shouldn't be there?
 
Old 02-09-2005, 04:25 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
it's just multi threading -- it's a good thing
 
Old 03-03-2005, 12:03 PM   #3
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
An interesting command that I just learned about can help you see this multithreading in context.

Code:
watch ps -Hfu$LOGNAME
That'll show you the processes running as the user you're currently logged in as, in a heirarchy. That way, each of the firefox-bin processes is shown to be a child of the original program launch. An example:

Code:
UID        PID  PPID  C STIME TTY          TIME CMD
jas       1648  1638  0 10:15 ?        00:00:06 /usr/X11R6/bin/fluxbox
jas       2020  1648  0 10:48 ?        00:00:00   xterm
jas       2022  2020  0 10:48 pts/0    00:00:00     bash
jas       2066  2022  0 10:54 pts/0    00:00:00       /bin/sh ./firefox
jas       2078  2066  0 10:54 pts/0    00:00:00         /bin/sh ./run-mozilla.sh
jas       2083  2078  4 10:54 pts/0    00:00:10           ./firefox-bin
jas       2093  2083  0 10:54 pts/0    00:00:00             ./firefox-bin
jas       2094  2093  0 10:54 pts/0    00:00:00               ./firefox-bin
jas       2096  2093  0 10:54 pts/0    00:00:00               ./firefox-bin
jas       2097  2093  0 10:54 pts/0    00:00:00               ./firefox-bin
jas       2103  2093  0 10:57 pts/0    00:00:00               ./firefox-bin
jas       2051  1648  0 10:50 ?        00:00:00   xterm
Much easier to read and understand
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
monitor processes to be notified when a new process is started? cfh Programming 2 10-03-2005 07:07 PM
why there're lots of child processes when fork? iclinux Programming 3 01-18-2005 07:09 AM
Want to monitor processes of several hosts through web page, how? huangyanfeng Linux - General 1 05-26-2004 02:36 PM
Monitor & respawn a BG Processes? amaze Linux - General 2 08-12-2003 09:02 PM
Monitor and Restart - Bkg Processes? KendersPlace Linux - General 1 02-15-2003 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:13 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