LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2005, 07:07 AM   #1
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
apache2 server seems busy


I've been searching through some archives, but can't seem to find a clear answer to why my apache2 server keeps saying:

[info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 29 idle, and 41 total children

My apache config: (or at least the parts I think are relevant)
Timeout 300
StartServers 90
MinSpareServers 30
MaxSpareServers 50
MaxClients 250
MaxRequestsPerChild 1000

It is a 'busy' server, a lot of requests are being made. But maybe the apache entry in the log is not 'that' bad.. I'm gettin it about 1-2 times an hour.

Cheers!

Ps: the machine's memory is not an issue, it's got 51 Mb free on a total of 1Gb and the swap is not being used. The cpu is also not being used, my uptime shows 0.0 for all 3 values.
 
Old 01-04-2005, 07:28 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
What is your "KeepAliveTimeout" set to?
 
Old 01-04-2005, 07:56 AM   #3
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Original Poster
Rep: Reputation: 15
Well I've disabled the KeepAlive, here's the settings:

KeepAlive Off
#MaxKeepAliveRequests 100
#KeepAliveTimeout 15

I can change it to On and tune the parameters if that is a wiser choice?
 
Old 01-04-2005, 03:08 PM   #4
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Original Poster
Rep: Reputation: 15
Any other things one might try? I'd love to hear some suggestions...
And would surely be happy to try them out...
 
Old 02-04-2005, 01:07 PM   #5
walhalla
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
hi,
i have nearlay the same cfg (but 2 gb ram) and the same problem (server seems busy ...). the server should be very busy, if all webs are running. but now there are only some domains on the server with few traffic and this problem?!

can anybody post a config (apache) regarding startingservers, maxspare, minspare ... to get a "heavyduty" apache get running properly?

by the way ... my cpu is runnig permanently with nearly 80%?!

thx for fast response


walhalla
 
Old 02-05-2005, 06:04 AM   #6
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by walhalla
can anybody post a config (apache) regarding startingservers, maxspare, minspare ... to get a "heavyduty" apache get running properly? by the way ... my cpu is runnig permanently with nearly 80%?!
Well.. I've been asking around for this on several forums, the "server seems busy" message seems to be a very strange thing.. I'm not experiencing any 'load' at all on my system.. Memory is pretty much used, but no swapping occurs, and about 500Meg of ram is used for caching, so seems good to me..

I'm now experiencing the same message but not so very often.. The apache2 on wich it runs, has the following conf.. (it get's about 360000 hits/day, according to awstats..)

Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
# This is a prefork server
StartServers 60
MinSpareServers 25
MaxSpareServers 50
MaxClients 150
MaxRequestsPerChild 1000

Good luck, and feedback is always welcome.
 
Old 02-05-2005, 08:26 AM   #7
Verylinux
LQ Newbie
 
Registered: Feb 2005
Location: Beijing,China,Asia
Posts: 12

Rep: Reputation: 0
I think below article will be helpful:

RedHat's httpd-2.0.46-44 Reference Manual

Your can read it from my website: verylinux.com!

Regards
 
  


Reply


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
PHP, APACHE2 server error NoviceW Linux - General 2 05-22-2005 07:46 AM
apache2 server karan101 Linux - Software 1 11-13-2004 06:19 PM
Mysql experts is this a innovative way to reduce the mysl load on busy server apache Linux - Software 1 07-19-2004 06:07 AM
How to do a simple Apache2 server in SuSe 9.0? vdogvictor Linux - Newbie 4 03-24-2004 08:01 PM
how do i remove server banners in apache2? groovin Linux - Networking 7 12-12-2002 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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