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 using httperf from a large ec2 instance with ubuntu 10.04 (no other software installed).

When I test without --hog the tests run however when I use --hog the tests never end

share|improve this question

I had the same problem but the patch provided in Niro's answer didn't solve the issue for me. The issue ended up being TCP connection reuse and recycling. To fix this I followed instructions found on:

The relevant instructions were to run the following commands:

  • echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
  • echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
share|improve this answer
up vote 2 down vote accepted

This is a bug in httperf. found the patch to solve it here:

share|improve this answer
applying this patch to 0.9.0 source worked for me on ec2, ubuntu11.10. tcp_tw_reuse & recycle did not make a difference. Linux ip-10-7-203-83 3.0.0-14-virtual #23-Ubuntu SMP Mon Nov 21 21:09:11 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux – spazm Oct 24 '12 at 5:08
patch applies on current 0.9.1 svn code as well, applying from line 901. Unpatched 0.9.1-svn did not work. Patched 0.9.1-svn did work. – spazm Oct 24 '12 at 5:17

strace httperf which is hunging: mass output bind(1006, {sa_family=AF_INET, sin_port=htons(58815), sin_addr=inet_addr("")}, 16) = -1 EADDRINUSE (Address already in use)

apply echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse so,can set big num-conns and rate..,and not hung.


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.