gpt4 book ai didi

apachebench - ab(Apache Bench)错误 : apr_poll: The timeout specified has expired (70007) on Windows

转载 作者:行者123 更新时间:2023-12-03 06:14:29 26 4
gpt4 key购买 nike

我正在从 Windows 7/SP1 客户端对 IIS 7.5 (WinR2/SP1) 进行负载测试。我有一个脚本可以进行三个 ab 调用,例如:

start /B cmd /c ab.exe -k -n 500 -c 50 http://rhvwr2vsu410/HelloWebAPI/Home/SyncProducts > SyncProducts.txt

当并发数> 5时,我很快就会收到错误消息

apr_poll: The timeout specified has expired (70007)

并且ab停止发出请求。我什至没有达到完成 100 个请求

这会在启动脚本后 30 秒内发生。 ab文档页面没有提供太多内容。 Related Stack Overflow questionServer Fault related question .

最佳答案

您必须拥有 2.4 版本并使用 -s timeout option .

编辑:

https://www.wampserver.com/ - 包括 Apache 2.4.x Win32 和 Win64。

已弃用 但仍然可用,但我不知道直到什么时候 并且只是不可用:

您可以使用我的 win32-x86 二进制文件(在 Visual Studio 2008 下从 trunk 2013 年 2 月 8 日编译):

  • http://mars.iti.pk.edu.pl/~nkg/ab-standalone.exe (不再可用)
  • http://mars.iti.pk.edu.pl/~nkg/ab-standalone-src.zip (不再可用)

我是用:http://code.google.com/p/apachebench-standalone/wiki/HowToBuild 制作的和 http://ftp.ps.pl/pub/apache//apr/binaries/win32/apr-1.3.6-iconv-1.2.1-util-1.3.8-win32-x86-msvcrt60.zip (只是不可用)。

关于apachebench - ab(Apache Bench)错误 : apr_poll: The timeout specified has expired (70007) on Windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10184975/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com