![我做了 AB Apache 测试,看起来不错,但是当我加载我的网站时出现错误](https://linux22.com/image/668005/%E6%88%91%E5%81%9A%E4%BA%86%20AB%20Apache%20%E6%B5%8B%E8%AF%95%EF%BC%8C%E7%9C%8B%E8%B5%B7%E6%9D%A5%E4%B8%8D%E9%94%99%EF%BC%8C%E4%BD%86%E6%98%AF%E5%BD%93%E6%88%91%E5%8A%A0%E8%BD%BD%E6%88%91%E7%9A%84%E7%BD%91%E7%AB%99%E6%97%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我有一个在线购物网站,我使用 WordPress、WooCommerce 和 W3 Total Cache。
我做了一个 AB:
ab -l -r -n 600 -c 30 -k -H "Accept-Encoding: gzip, deflate"
我得到以下结果:
Server Software: LiteSpeed
Server Hostname: *******************
Server Port: 80
Document Path: /
Document Length: Variable
Concurrency Level: 30
Time taken for tests: 31.311 seconds
Complete requests: 600
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 6349627 bytes
HTML transferred: 6210786 bytes
Requests per second: 19.16 [#/sec] (mean)
Time per request: 1565.550 [ms] (mean)
Time per request: 52.185 [ms] (mean, across all concurrent requests)
Transfer rate: 198.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 167 389 272.8 346 3408
Processing: 234 1057 1371.0 442 12508
Waiting: 195 495 482.7 386 4968
Total: 405 1446 1394.5 851 12808
Percentage of the requests served within a certain time (ms)
50% 851
66% 992
75% 1664
80% 2421
90% 3442
95% 4078
98% 6122
99% 6766
100% 12808 (longest request)
看起来还不错,但问题是每天20/30次我得到一个请求超时错误,有时我会遇到其他错误。我联系了托管方,他们总是说没问题。我很困惑。我只想问...我的测试有问题吗?谢谢...