免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
1 [报告]
发表于 2007-03-18 21:28 |显示全部楼层
Ubuntu 6.06 自编译 Apache 2.2.4+Php 5.2.1+eAccelerator v0.9.5

赛扬II 1GHz 320M SDRAM 10G 5400RPM Maxtor 91021U2 HDD

apache 编译参数:

  1. ./configure --prefix=/opt/apache --with-mpm=worker --enable-so
复制代码


php 编译参数:

  1. './configure' '--prefix=/opt/php' '--with-apxs2=/opt/apache/bin/apxs' '--disable-ipv6' '--with-mysql=/opt/mysql' '--enable-zend-multibyte' '--with-zlib' '--with-gd=/opt/gd' '--with-exif=/opt/exif' '--enable-mbstring' '--with-mcrypt=/opt/mcrypt' '--with-mhash=/opt/mhash'
复制代码


httpd-mpm.conf 配置:

  1. <IfModule mpm_worker_module>
  2.     StartServers            10
  3.     MaxClients             300
  4.     MinSpareThreads        200
  5.     MaxSpareThreads        256
  6.     ThreadsPerChild          50
  7.     MaxRequestsPerChild   10000
  8. </IfModule>
复制代码


index.php

  1. <?php
  2. phpinfo();
  3. ?>
复制代码


连续3次ab -n 10000 -c 200 测试,取最好成绩:


  1. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  2. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  3. Copyright 2006 The Apache Software Foundation, http://www.apache.org/

  4. Benchmarking localhost (be patient)


  5. Server Software:        Apache/2.2.4
  6. Server Hostname:        localhost
  7. Server Port:            80

  8. Document Path:          /index.php
  9. Document Length:        47463 bytes

  10. Concurrency Level:      200
  11. Time taken for tests:   118.649259 seconds
  12. Complete requests:      10000
  13. Failed requests:        157
  14.    (Connect: 0, Length: 157, Exceptions: 0)
  15. Write errors:           0
  16. Total transferred:      476269215 bytes
  17. HTML transferred:       474629215 bytes
  18. Requests per second:    84.28 [#/sec] (mean)
  19. Time per request:       2372.985 [ms] (mean)
  20. Time per request:       11.865 [ms] (mean, across all concurrent requests)
  21. Transfer rate:          3920.01 [Kbytes/sec] received

  22. Connection Times (ms)
  23.               min  mean[+/-sd] median   max
  24. Connect:        0 1154 671.0   1155    2522
  25. Processing:    50 1216 671.6   1216    2583
  26. Waiting:        0 1127 656.7   1124    2482
  27. Total:       1889 2370  55.5   2355    2586

  28. Percentage of the requests served within a certain time (ms)
  29.   50%   2355
  30.   66%   2361
  31.   75%   2366
  32.   80%   2368
  33.   90%   2405
  34.   95%   2514
  35.   98%   2583
  36.   99%   2585
  37. 100%   2586 (longest request)
  38. Start on
  39. 2007年 03月 18日 星期日 10:37:23 CST
复制代码

[ 本帖最后由 likuku 于 2007-3-18 21:33 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP