ab (Apache Bench) error: apr_poll: The timeout specified has expired (70007) on Windows

RickAndMSFT picture RickAndMSFT · Apr 17, 2012 · Viewed 60.7k times · Source

I'm load testing IIS 7.5 (WinR2/SP1) from my Windows 7/SP1 client. I have a script that makes three ab calls like:

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

When the concurrency is > 5, I soon get the error message

apr_poll: The timeout specified has expired (70007)

And ab stops making requests. I don't even get to Completed 100 requests.

This happens within 30 seconds of starting my script. The ab documentation page doesn't provide much. Related Stack Overflow question. Server Fault related question .

Answer

Dzwiedziu-nkg picture Dzwiedziu-nkg · Feb 8, 2013

You must have the 2.4 version and use -s timeout option.

Edit:

https://www.wampserver.com/ - includes Apache 2.4.x Win32 and Win64.

Deprecated but still available however I not known until when:

You can use my win32-x86 binary (compiled under Visual Studio 2008 from trunk 8 Feb 2013):

I was made it using: http://code.google.com/p/apachebench-standalone/wiki/HowToBuild and 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 (just not available).