IIS6.0环境用FastCGI模式加载php的性能测试(2)
下面进行最简单的压力测试:
我用apache里面内置的ab.exe进行最简单的压力测试:
ab -n 1000 -c 20 http://192.168.0.6/abu.php
这句话的意思是模拟出总共1000个网站请求,并发20个请求,访问服务器http://192.168.0.6/abu.php 页面
如下图:
点击可以看到大图
这是我在服务器上的截图,注意,我们可以发现,服务器的CPU已经窜至80%左右。
我本机完整的记录见下面:
C:\>ab -n 1000 -c 20 http://192.168.0.6/abu.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 192.168.0.6 (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:
Server Hostname:
Server Port:
Document Path:
Document Length:
Concurrency Level:
Time taken for tests:
Complete requests:
Failed requests:
Write errors:
Total transferred:
HTML transferred:
Requests per second:
Time per request:
Time per request:
Transfer rate:
Connection Times (ms)
Connect:
Processing:
Waiting:
Total:
Percentage of the requests served within a certain time (ms)
好的,下面开始第二个阶段,换FastCGI
- 最新评论