httperf on Linux

Monday, 04. 16. 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 65535 (( http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors ))
  • Twiddle the TCP stack for faster socket recycling (( http://www.speedguide.net/articles/linux-tweaking-121 )) ((http://serverfault.com/questions/331513/httperf-hangs-when-using-hog)) :
    
    echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
    echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
    

Comments are closed.