Linode 1G 1024 CentOS7+Apache+PHP 负载能力ab测试

使用的系统信息:

[root@localhost ~]# uname -a
Linux localhost.localdomain 3.15.4-x86_64-linode45 #1 SMP Mon Jul 7 08:42:36 EDT
 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# php -v
PHP 5.4.16 (cli) (built: Aug  6 2014 13:12:28)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@localhost ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Jul 23 2014 14:48:00
[root@localhost ~]#




ab测试 phpinfo() 结果:吞吐量 759!

D:\wamp\bin\apache\apache2.4.9\bin>ab -n 100 -c 10 http://linode.zbphp.com/
This is ApacheBench, Version 2.3 <$Revision: 1554214 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking linode.zbphp.com (be patient).....done


Server Software:        Apache/2.4.6
Server Hostname:        linode.zbphp.com
Server Port:            80

Document Path:          /
Document Length:        52627 bytes

Concurrency Level:      10
Time taken for tests:   7.592 seconds
Complete requests:      100
Failed requests:        14
   (Connect: 0, Receive: 0, Length: 14, Exceptions: 0)
Total transferred:      5280981 bytes
HTML transferred:       5262681 bytes
Requests per second:    13.17 [#/sec] (mean)
Time per request:       759.206 [ms] (mean)
Time per request:       75.921 [ms] (mean, across all concurrent requests)
Transfer rate:          679.29 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       60   73   4.7     70      80
Processing:   208  635 101.4    660     690
Waiting:       70  237 120.5    220     640
Total:        279  708 101.5    740     770

Percentage of the requests served within a certain time (ms)
  50%    740
  66%    740
  75%    740
  80%    745
  90%    750
  95%    760
  98%    760
  99%    770
 100%    770 (longest request)

D:\wamp\bin\apache\apache2.4.9\bin>



郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。