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 just started working with node.js and doing some experimental load testing with ab is returning an error at around 30 requests or so.

I've found other pages showing a lot better concurrency numbers than I am such as:

Are there some critical server configuration settings that need done to achieve those numbers?

I've watched memory on top and I still see a decent amount of free memory while running ab, watched mongostat as well and not seeing anything that looks suspicious.

The command I'm running, and the error is:

ab -k -n 100 -c 10
This is ApacheBench, Version 2.0.41-dev <$Revision: $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
Copyright (c) 2006 The Apache Software Foundation,

Benchmarking (be patient)...apr_poll: The timeout specified has   expired (70007)
Total of 32 requests completed

Does anyone have any suggestions on things I should look in to that may be causing this? I'm running it on osx lion, but have also run the same command on the server with the same results.

EDIT: I eventually solved this issue. I was using a TTAPI, which was connecting to through websockets. On the homepage, I was connecting on every request. So what was happening was that after a certain number of connections, everything would fall apart. If you're running into the same issue, check out whether you are hitting external services each request.

share|improve this question

According to this blog post, this is because apache bench makes HTTP/1.0 requests, which cause node to close the connection, as of node 0.6+.

I'm not sure why; it seems kind of like a node bug.

Anyways, the short answer is to use something else. I've been using httperf which seems better anyways.

share|improve this answer
Is there another options? – hellboy Apr 15 '15 at 5:35

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.