Chinaunix

标题: 用AB给FREEBSD服务器做压力测试.数据好像很若.请高手帮忙看看! [打印本页]

作者: 矛盾无奈    时间: 2006-08-24 23:48
标题: 用AB给FREEBSD服务器做压力测试.数据好像很若.请高手帮忙看看!
测试对象是论坛,我服务器没怎么优化过!
以下:
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)
作者: 矛盾无奈    时间: 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的并发不够大?
作者: HonestQiao    时间: 2006-08-25 09:22
嗯,并发不大。

mysql需要优化得。
作者: mao1001    时间: 2006-08-25 18:14
能问一下,AB的参数含义么?
以前没用过




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2