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 was trying to make apache 2.2 reject connections if MaxClients was reached, to do this I found the directive ListenBacklog.To test it, I configured apache in the following way:

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients            10
    ListenBacklog        1
    MaxRequestsPerChild   0

I've made a little script in JMeter to test this. The test launchs 50 users in 1 second (it requests a phpinfo page) but none is rejected, they all wait! I don't understand how this directive works... my operating system is Ubuntu.

share|improve this question
up vote 0 down vote accepted
  1. -- Testing on LAN unlikely be precise.
  2. Why do you think it should answer with TCP RST finally?
  3. You can do this with Netfilter instead, but reasons are unclear; that behavior of the WEB-sever isn't user-friendly at all.
share|improve this answer
Thanks for the answer... I'm implementing a little system that filters traffic to overloaded web servers, so it's desirable to tune the server in fail fast manner – andrés Feb 2 '11 at 15:13

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.