Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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've built a simple apache + django + mod_wsgi webapp that I am testing on my local machine.

I've started load testing it using ab - and I am seeing a few failed requests.

ab -n 500 -c 100 "http://localhost/"

Complete requests:      500
Failed requests:        27

In my apache config I have turned keepalive OFF and all the config for MaxClients & MaxKeepAliveRequests is set to 150. As I am starting 100 connections I dont think that I am hitting that limit. Top says that I'm not running out of memory either

How can I reduce the number of failed requests?

Also is there any log/record of these failed requests? - because there is nothing in the apache log.

share|improve this question
You need a tool that will give you some more information about the failures. For example, did the connections fail? Did it accept the request and return a response with a status code indicating an error? Ideally, you'd like to capture the full HTTP responses (if present). – CMerrill Aug 6 '12 at 13:56

Consider using httperf or weighttp instead of ab.

Both of them provide more details than ab about failed requests.

share|improve this answer

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.