Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a Debian with WordPress on Apache, which gets pretty nasty spikes in load from time to time, leading to hanging on of the whole server. I've played a bit with some of the apache configuration parameters in order to make it a bit more stable, but the problems persists, although more rarely than before.

What I want to do now is trigger apache children massacre in the moment load hits... 20 for example. How do I do that?

share|improve this question

Rather than blindly killing Apache processes, you should look at resource limiting them to avoid the spikes. Perhaps configuring limits via /etc/security/limits.conf (what it's called on RH type systems, not sure what the Debian equivalent is), using setrlimit, (or perhaps some other way of limiting the resource usage of the process that I'm not aware of). Heck, just setting a MaxClients in Apache may do the trick.

share|improve this answer
We couldn't figure it out and some other guys just switched to Lighttpd, which solved the problem (for now). Thanks for the useful suggestion, though! – vlood May 17 '13 at 10:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.