码迷,mamicode.com
首页 > Web开发 > 详细

Performance tool httperf

时间:2015-05-16 20:10:16      阅读:117      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!