logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Busy Servers reaches Maxclients.
Author
samv18



Joined: 18 Jun 2015
Posts: 3

PostPosted: Thu 18 Jun '15 19:55    Post subject: Busy Servers reaches Maxclients. Reply with quote

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

PostPosted: Mon 22 Jun '15 16:16    Post subject: Reply with quote

Try to disable/enable KeepAlive and check the results.
Back to top
samv18



Joined: 18 Jun 2015
Posts: 3

PostPosted: Mon 22 Jun '15 16:23    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jun '15 17:33    Post subject: Reply with quote

KeepAlive reduces the number of requests since the client will reuse a connection.
Back to top


Reply to topic   Topic: Busy Servers reaches Maxclients. View previous topic :: View next topic
Post new topic   Forum Index -> Apache