apachebench - ab 出现 apr_socket_recv : Connection refused (61) 错误

标签 apachebench

我正在测试 eventlet,但收到此错误:

~>ab -n 10 -c 1 http://localhost:8090/
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 localhost (be patient)...apr_socket_recv: Connection reset by peer (54)
Total of 2 requests completed

该网站在 localhost:8090/上运行并返回 200 OK。

我在使用 tomcat 时遇到了同样的问题,但网站仍然运行良好。

问题可能是什么?

最佳答案

我发现使用 127.0.0.1 而不是 localhost 有效:

ab -n 10 -c 1 http://127.0.0.1:8090/

更新: 可能是 ab 中的错误:https://groups.google.com/forum/#!msg/nodejs/TZU5H7MdoII/yivu0d4LMaAJ

关于apachebench - ab 出现 apr_socket_recv : Connection refused (61) 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7938869/

相关文章:

nginx - 负载测试应该在本地还是远程进行?

http - apachebench(ab) 为发布数据追加新行

performance-testing - 为并发 apache bench 请求发送不同的 POST json

php - 在我的 ApacheBench 负载测试结果中按长度失败的请求

apache - 使用数据库示例数据生成负载的工具

sockets - “ab”程序在收到大量请求后卡住,为什么?

php - Apache 工作台 : Why so many 503s?

sockets - 'ab' 程序在大量请求后卡住,为什么?

php - 表现不佳

ruby-on-rails - Vagrant 减慢对 Rails 服务器的 http 请求