Thursday, October 25, 2012

Apache benchmarking tool (ab) + CentOS

yum install apr-util
yum install yum-utils

ab -n 50 -c 10
It will test 50 requests + maximum of 10 requests running concurrently

The -c parameter specifies the number of connections; the -k stands for HTTP Keep-Alive; and the -t parameter sets the time in seconds for which each connection is alive
ab -n 50 -kc 10 -t 60

Run this command on the webserver to analyze the traffic as well 
tcpdump -nn 'tcp[tcpflags] == tcp-rst' and port 80 and src host x.x.x.x 

No comments:

Post a Comment