一、apr_pollset_poll
如果出现apr_pollset_poll: The timeout specified has expired (70007),主要是timeout连接超时了,可以加个-k参数,让连接KeepAlive
ab -c 10 -n 5000 http://127.0.0.1:8984/
出现这问题:
Benchmarking 127.0.0.1 (be patient)
apr_pollset_poll: The timeout specified has expired (70007)
其原因是链接超时了——timeout,可以加个-k让链接持续保持。也可以加上-r,-s 60这两个命令
-r Don't exit on socket receive errors. # 在遇到socket接收错误后,不退出测试
-s timeout Seconds to max. wait for each response # 最大超时时间,默认30s
Default is 30 seconds
-k Use HTTP KeepAlive feature # keep-alive保持连接