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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2006, 10:51 AM   #1
ilhbutshm
Member
 
Registered: Jul 2003
Location: Europe
Distribution: Slackware 10.2
Posts: 104

Rep: Reputation: 15
A lot of agetty, httpd and mysqld processes


I've got a fresh install of Slackware 10.2 with Apache 2.2.3, MySQL 4.1.x and PHP 5.1.6.

I find it strange that I have 10 'mysqld' processes (only 1 mysqld_safe that runs at boot in startup script), 9 'httpd' processes and 6 'agetty' processes.

Why is so much processes spawned? Is something wrong?

I also noticed that my browsing on the internet has significantly slowed down ever since I have this linux box in the network. Is there a connection?
 
Old 09-04-2006, 11:42 AM   #2
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
Quote:
Originally Posted by ilhbutshm
I find it strange that I have 10 'mysqld' processes (only 1 mysqld_safe that runs at boot in startup script), 9 'httpd' processes and 6 'agetty' processes.
mysqld_safe spawns mysqld processes to handle requests. httpd keeps multiple processes available unless you interface it with the inetd daemon. agetty is used for your [ctrl+]alt+f[1-7] consoles.

You can tweak apache's configuration to limit the number of httpd threads kept on-hand, and MySQL should have a similar configuration tweak. But that will slow down response times when people request information. If you aren't using these daemons, just turn off the program with chmod -x /etc/rc.d/{rc.mysqld,rc.httpd}

Quote:
Originally Posted by ilhbutshm
Why is so much processes spawned? Is something wrong?
Doubt it, it's how most servers deal with multiple, simultaneous requests.

Quote:
Originally Posted by ilhbutshm
I also noticed that my browsing on the internet has significantly slowed down ever since I have this linux box in the network. Is there a connection?
Could it be that people are requesting information from your httpd server? If they're using a lot of your upstream, you won't have enough to send a request to download a page or file.
 
Old 09-04-2006, 12:08 PM   #3
ilhbutshm
Member
 
Registered: Jul 2003
Location: Europe
Distribution: Slackware 10.2
Posts: 104

Original Poster
Rep: Reputation: 15
Ok, I feel a little bit better now

Not many people are using this server, basicly just me and a friend of mine are checking a certain database ona regular basis. Thats the reason I thought that 10 processes for each daemon is a bit too much.

Is there a way to view current bandwidth usage in linux? Something like '20kbs down, 5kbs up'?

Thanks
 
Old 09-04-2006, 12:49 PM   #4
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
Yep, I keep gkrellm running on my desktop to watch my network/hardrive/processor/memory usage. There are also the console-based utilites ntop and iptraf. There are probably other ways, but those are what I'm aware of.
 
  


Reply

Tags
apache, bandwidth, mysql



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
disabling mysqld and httpd webinsek Linux - Newbie 3 03-25-2006 12:13 PM
multiple mysqld processes lsimon4180 Linux - Software 2 10-03-2004 03:42 PM
httpd opening up to many processes artistik Linux - Software 1 09-28-2003 02:30 PM
killing a lot of processes at once psychobyte Linux - General 1 09-26-2003 03:22 PM
httpd processes Hamma Linux - Software 16 06-01-2003 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:25 PM.

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