jump to navigation

apache crashes due to high traffic August 28, 2008

Although this wasn’t actually the all time solution, i’ll just post this to have a bit of solution to this problem. I used this due to some of the few reasons.

  1. there are too much waiting http requests that apache is queueing up and ends up to a crash.
  2. most of the requests gets timed out.
  3. server resources is not maximized at all.

know the capacity of your server, experiment on these settings. ServerLimit – default setting is 256 MaxClients – normally equal to or less than ServerLimit Here are the default settings as far as i am concerned:

StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000

Slowly increment the value of MaxClients and evaluate your web servers behaviour. Increasing this value will also increase server load. If the ServerLimit directive is not found, you just simply add in like the above. MaxClients cannot be greater than the value of ServerLimit otherwise apache won’t start. ServerLimit 750 StartServers 30 MinSpareServers 10 MaxSpareServers 30 MaxClients 750 MaxRequestsPerChild 3000 Read ServerLimit documentation from apache website Notes: I’m adding these posts for myself and anyone who will want it. if you have anything that can benefit anyone in the above topic, please do so. if you just want to criticize the way i write. get lost. i’m not a writer. 😛

Comments»

1. recover data - August 3, 2010

Some time it happen that apache crashes due to high traffic. We have to find out some solution for this. These methods can be effective for this but not for all time. But we can generally take these in our practice.

2. apache crashes due to high traffic » dhundee’s world - July 28, 2011

[…] moved to apache crashes due to high traffic tags apache crashing trafficTags: apache performance No Comments Server Administration « how to dump mysql databasefrom command line urban legends: purefoods accident » […]