Performance tool httperf

httperf: A relatively well-known open source utility developed by HP, for Linux operating systems only

 

website: http://www.hpl.hp.com/research/linux/httperf

the source comes as a tar.gz archive and needs to be compiled using the standard method 

1
2
3
4
5
./configure
./make
./make install
 
$ httperf --server 192.168.1.100 --port 80 --uri /index.html --rate 300 --num-conn 3000 --num-call 1 --timeout 5

in this example httperf will download http://192.168.1.100/index.html repeatedly, 300 times per seconds, resulting in a total of 30,000 requests.

 

--rate how many request should be sent every second

--num-conn the total amount of connections 

--num-call how many requests should be sent per connection

--timeout quantity of seconds elapsed before a request is considered lost

 

If the success ratio is 100 percent or the response time near 0 ms, increase the request rate and run the rest again until the server shows signs of weakness, 

once the results begin to look a little less perfect tweak the appropriate configuration directives and run the test again

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。