- 论坛徽章:
- 0
|
网站做测评 有项要求是单台服务器同时支持在线10到100家企业(1000人);
现在我说下我的环境:
Xeon E5504 *2
8G 内存
sas 300G *2 做raid1
centos5.4
nginx+php+mysql
我自己用ab在局域网内测如下:
./ab -c 500 -n 100000 http://www.xxxxxxxx.com/test.php
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 www.xxxxxxx.com (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests
Server Software: Apache/2.2.6
Server Hostname: www.xxxxxx.com
Server Port: 80
Document Path: /test.php
Document Length: 298 bytes
Concurrency Level: 500
Time taken for tests: 20.984684 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Non-2xx responses: 100029
Total transferred: 48514065 bytes
HTML transferred: 29808642 bytes
Requests per second: 4765.38 [#/sec] (mean)
Time per request: 104.923 [ms] (mean)
Time per request: 0.210 [ms] (mean, across all concurrent requests)
Transfer rate: 2257.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 10 163.9 1 8999
Processing: 0 57 427.6 12 20571
Waiting: 0 50 427.8 5 20571
Total: 0 68 457.8 14 20577
Percentage of the requests served within a certain time (ms)
50% 14
66% 19
75% 23
80% 27
90% 43
95% 55
98% 692
99% 1005
100% 20577 (longest request)
[root@china bin]#
用webbench 在服务器上测试如下:
# webbench -c 5000 -t 30 http://www.xxxxx.com/test.php
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.xxxx.com/test.php
5000 clients, running 30 sec.
Speed=177872 pages/min, 5807245 bytes/sec.
Requests: 88936 susceed, 0 failed.
在以上的整个测试过程中我访问web的时候还很顺畅 ...整个站加上图片也很小总共也就152M
然后我得出的结论是整个环境完全能支持1000人同时在线,然而第三方给做了测试说只能并发200用户左右 200以上就上不去了....
这让我很费解?
第三方在测的时候流量都达到了近400M 如此高的流量才200的并发么?
|
|