Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Busy Servers reaches Maxclients. |
|
Author |
|
samv18
Joined: 18 Jun 2015 Posts: 3
|
Posted: Thu 18 Jun '15 19:55 Post subject: Busy Servers reaches Maxclients. |
|
|
Hello all,
I am new member of apachelounge and hope that some one can help me out with the issues I am facing since a month with apache.
I am using apache 2.2 webserver and tomcat 6 as app server.
I have two unix boxes (let say A and B) where apache is installed for load balancing purpose.
The issue is now and then I see that on both the server reaches to 250 busy servers which makes my site very slow and after some time the site is unaccessible.
When I see this I restart apache on both unix boxes and also restart my app server.
But that does not help. As soon as I start apache the httpd process ramps up to 12 (ps -ef | grep httpd) within a minute and the busy servers still remains at 250.
The only I have to do is wait and watch till the busy servers goes down to 250 and then site is back to normal.
Some times it takes hours for busy servers to go down below 250.
I dont understand that why even restarting apache and tomcat doesnt help. why the busy servers are still at 250. even after I restart.
This is what I have in httpd.conf
<IfModule worker.c>
ServerLimit 80
StartServers 2
MaxClients 250
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
I tried to increase MaxClients to 300, which also didnt help and apache or httpd process shuts down by itself.
Any help is much appreciated.
Thanks |
|
Back to top |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Mon 22 Jun '15 16:16 Post subject: |
|
|
Try to disable/enable KeepAlive and check the results. |
|
Back to top |
|
samv18
Joined: 18 Jun 2015 Posts: 3
|
Posted: Mon 22 Jun '15 16:23 Post subject: |
|
|
Thanks for your reply.
Its currently disabled. Should I enable it?
What value should I have in MaxKeepAliveRequests and KeepAliveTimeout? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 22 Jun '15 17:33 Post subject: |
|
|
KeepAlive reduces the number of requests since the client will reuse a connection. |
|
Back to top |
|
|
|
|
|
|