免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] 用AB给FREEBSD服务器做压力测试.数据好像很若.请高手帮忙看看! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-24 23:48 |只看该作者 |倒序浏览
测试对象是论坛,我服务器没怎么优化过!
以下:
ab -n 1000 -c 200 http://bbs.abc.com/index.php

Benchmarking bbs.pharmhome.com (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.2
Server Hostname:        bbs.abc.com
Server Port:            80

Document Path:          /index.php
Document Length:        10112 bytes

Concurrency Level:      200
Time taken for tests:   20.430841 seconds
Complete requests:      1000
Failed requests:        844
   (Connect: 0, Length: 844, Exceptions: 0)
Write errors:           0
Total transferred:      4041615 bytes
HTML transferred:       3828555 bytes
Requests per second:    48.95 [#/sec] (mean)
Time per request:       4086.168 [ms] (mean)
Time per request:       20.431 [ms] (mean, across all concurrent requests)
Transfer rate:          193.14 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   20 124.4      7    1363
Processing:    43 3503 3296.8   2083   14254
Waiting:        0 2645 3243.9   1397   13214
Total:         52 3524 3295.4   2095   14262

Percentage of the requests served within a certain time (ms)
  50%   2095
  66%   3450
  75%   4643
  80%   4952
  90%   8610
  95%  12291
  98%  12648
  99%  13157
100%  14262 (longest request)

论坛徽章:
0
2 [报告]
发表于 2006-08-25 00:13 |只看该作者
做测试的同时,我看了一下论坛有的时候会刷出
Discuz! info: Can not connect to MySQL server

Time: 2006-8-25 12:09am
Script: /thread-1-1-1.html

Error: Too many connections
Errno.: 1040

Similar error report has beed dispatched to administrator before.

是不是mysql的并发不够大?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2006-08-25 09:22 |只看该作者
嗯,并发不大。

mysql需要优化得。

论坛徽章:
0
4 [报告]
发表于 2006-08-25 18:14 |只看该作者
能问一下,AB的参数含义么?
以前没用过
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP