免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5527 | 回复: 3
打印 上一主题 下一主题

apache性能通常怎么测试?ab测试出现Failed request? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-28 18:49 |只看该作者 |倒序浏览
请问:apache通常用什么工具做性能测试?本地的?远程的?
ab测试apache出现了Failed request 是什么原因,/var/log/httpd/下没记录相关的信息啊?
下面的结果算正常吗?
[root@localhost httpd]# ab -n 1000 -c 100 http://localhost/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Apache/2.2.3
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        39832 bytes

Concurrency Level:      100
Time taken for tests:   14.644505 seconds
Complete requests:      1000
Failed requests:        526
   (Connect: 0, Length: 526, Exceptions: 0)
Write errors:           0
Total transferred:      19285224 bytes
HTML transferred:       18981360 bytes
Requests per second:    68.29 [#/sec] (mean)
Time per request:       1464.450 [ms] (mean)
Time per request:       14.645 [ms] (mean, across all concurrent requests)
Transfer rate:          1286.01 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.1      0       6
Processing:    48 1374 1528.8    331    6029
Waiting:       46 1370 1529.2    320    6020
Total:         48 1374 1528.9    331    6029

Percentage of the requests served within a certain time (ms)
  50%    331
  66%   2323
  75%   2566
  80%   2695
  90%   3244
  95%   4605
  98%   5176
  99%   5380
100%   6029 (longest request)

论坛徽章:
0
2 [报告]
发表于 2010-09-28 20:05 |只看该作者
cacti是最常用的吗?

论坛徽章:
0
3 [报告]
发表于 2010-09-30 15:34 |只看该作者
loadrunner!

论坛徽章:
0
4 [报告]
发表于 2010-10-06 10:14 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP