免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 葱头
打印 上一主题 下一主题

请大家公布一下自己的apache压力测试成绩 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2007-03-03 17:53 |显示全部楼层
  1. # ab -n 10000 -c 200 http://localhost/phpinfo.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 1000 requests
  7. Completed 2000 requests
  8. Completed 3000 requests
  9. Completed 4000 requests
  10. Completed 5000 requests
  11. Completed 6000 requests
  12. Completed 7000 requests
  13. Completed 8000 requests
  14. Completed 9000 requests
  15. apr_poll: The timeout specified has expired (70007)
  16. Total of 9995 requests completed
复制代码
估计是ipfw防火墙的问题,导致运行异常
  1. # ab -n 9000 -c 200 http://localhost/phpinfo.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 900 requests
  7. Completed 1800 requests
  8. Completed 2700 requests
  9. Completed 3600 requests
  10. Completed 4500 requests
  11. Completed 5400 requests
  12. Completed 6300 requests
  13. Completed 7200 requests
  14. Completed 8100 requests
  15. Finished 9000 requests


  16. Server Software:        Apache/2.2.2
  17. Server Hostname:        localhost
  18. Server Port:            80

  19. Document Path:          /phpinfo.php
  20. Document Length:        284 bytes

  21. Concurrency Level:      200
  22. Time taken for tests:   8.414356 seconds
  23. Complete requests:      9000
  24. Failed requests:        0
  25. Write errors:           0
  26. Non-2xx responses:      9000
  27. Total transferred:      4176000 bytes
  28. HTML transferred:       2556000 bytes
  29. Requests per second:    1069.60 [#/sec] (mean)
  30. Time per request:       186.986 [ms] (mean)
  31. Time per request:       0.935 [ms] (mean, across all concurrent requests)
  32. Transfer rate:          484.65 [Kbytes/sec] received

  33. Connection Times (ms)
  34.               min  mean[+/-sd] median   max
  35. Connect:        0    0   3.7      0     351
  36. Processing:    16  184 246.8     96    2573
  37. Waiting:        3  115 178.1     74    2467
  38. Total:         16  184 246.8     96    2573

  39. Percentage of the requests served within a certain time (ms)
  40.   50%     96
  41.   66%    121
  42.   75%    164
  43.   80%    185
  44.   90%    386
  45.   95%    748
  46.   98%   1051
  47.   99%   1355
  48. 100%   2573 (longest request)
复制代码

论坛徽章:
0
2 [报告]
发表于 2007-04-03 14:24 |显示全部楼层
看来还是apache1.3的在这个测试的时候性能更好啊,不知道具体的应用如何

论坛徽章:
0
3 [报告]
发表于 2007-08-09 11:21 |显示全部楼层
原帖由 huzi1986 于 2007-8-9 11:03 发表
Failed requests:        9772
   (Connect: 0, Length: 9772, Exceptions: 0)


这是昨回事情

以你机器的配置,参数改成 -c 10试试看吧,不行的话再降低
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP