首页 > Web开发 > 详细

Performance tool httperf

时间:2015-05-16 20:09:15      阅读:234      评论:0      收藏:0      [点我收藏+]

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

 

Performance tool httperf

原文:http://www.cnblogs.com/allenhaozi/p/4508432.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!