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. :P

Comments»

no comments yet - be the first?


Bad Behavior has blocked 146 access attempts in the last 7 days.