商讯信箱
用户名: @
密  码:   注册|忘记密码
登录
个人用户经销商
您的位置:首页 > 技术频道 > 正文

Apache自带的性能测试工具ab的使用

作者:ITPUB论坛  2008-05-07

Connection Times (ms)
        min mean[+/-sd] median   max
Connect:     0   1   4.5     0     15
Processing:   297 12818 2427.6 12921   30578
Waiting:     281 12801 2427.6 12906   30562
Total:     312 12820 2427.5 12921   30578
Percentage of the requests served within a certain time (ms)
50% 12921
66% 13203
75% 13453
80% 13546
90% 13781
95% 14156
98% 14750
99% 18328
100% 30578 (longest request)

Percentage of the requests served within a certain time (ms)
50% 12921
66% 13203
75% 13453
80% 13546
90% 13781
95% 14156
98% 14750
99% 18328
100% 30578 (longest request)

    以上结果指出,在并发50个请求的情况下,完成1000次的访问请求,共花了262.515秒,这个程序每秒可处理3.81个请求。

    2.4 问题 

    在实际使用中,我发现-c 参数,即一次同时产生的并发请求个数最多设置成64,大于等于65就会报错,不知道为什么。

    3 资料

    ab官方网站:http://httpd.apache.org/docs/2.0/programs/ab.html

    Apache 2.0手册中文版翻译项目ab部分:https://support.iap.ac.cn/net/ApacheManual/zh-cn/programs/ab.html

1 2
【内容导航】
第1页: 概述 第2页: 问题
©版权所有。未经许可,不得转载。
[责任编辑:robert]
[an error occurred while processing this directive]