httperf on Linux

Monday, 16. 04. 2012  –  Category: stash, sw

httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.”

  • Set open files to 65535 via ulimit -n
  • Recompile httperf with /usr/include/bits/typesizes.h’s __FD_SETSIZE dialled up to 655351
  • Twiddle the TCP stack for faster socket recycling23 :
    
    echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
    echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
    
  1. http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors []
  2. http://www.speedguide.net/articles/linux-tweaking-121 []
  3. http://serverfault.com/questions/331513/httperf-hangs-when-using-hog []

Comments are closed.