用ab压力测试php,并发1000时,Finished 0 requests??

wangying1208 2012-05-16 11:33:05
今天用ab压力测试php,在并发为1000的情况下,发现情况完成的请求数目为0.
我用的是apache,在上网查了下说apache服务器对连接数有限制,做了更改,但是结果与更改之前的一样,求助~~~

C:\xampp\apache\bin>ab -c 1000 -t 10 http://172.24.2.112/hello.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 172.24.2.112 (be patient)
Finished 0 requests


Server Software: Apache/2.2.21
Server Hostname: 172.24.2.112
Server Port: 80

Document Path: /hello.php
Document Length: 0 bytes

Concurrency Level: 1000
Time taken for tests: 12.972 seconds
Complete requests: 0
Failed requests: 9
(Connect: 9, Receive: 0, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 258300 bytes
HTML transferred: 38700 bytes
...全文
382 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧