我有一个PHP的网站,Lighttpd.它也在Centos 5上使用MySQL.我用Apache Bench(ab)测试了我的PHP代码.它导致一些错误(失败的请求)表明其他长度超过正常.我绝对相信我的PHP结果总是应该具有相同的确切长度.我已经查看了我的Lighttpd和MySQL日志和错误日志,并且没有任何错误.
有没有办法在结果有其他长度时确切地检查ab得到什么,或者是否有其他方法可以找出原因是什么或"坏"结果是什么?
我需要知道,因为我需要100%的好结果.
-bash-3.2# ab -n 500 -c 200 http://domain.com/test/index.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 domain.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software: lighttpd/1.4.20
Server Hostname: domain.com
Server Port: 80
Document Path: /test/index.php
Document Length: 15673 bytes
Concurrency Level: 200
Time taken for tests: 0.375862 seconds …Run Code Online (Sandbox Code Playgroud)