Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

apachebench

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 .

like image 855
RickAndMSFT Avatar asked Apr 17 '12 04:04

RickAndMSFT


2 Answers

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 and just not available:

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

  • http://mars.iti.pk.edu.pl/~nkg/ab-standalone.exe (no longer available)
  • http://mars.iti.pk.edu.pl/~nkg/ab-standalone-src.zip (no longer available)

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).

like image 127
Dzwiedziu-nkg Avatar answered Sep 20 '22 14:09

Dzwiedziu-nkg


ab --help   -s timeout      Seconds to max. wait for each response                     Default is 30 seconds 

Add option: -s 120 to ab command, Where 120 is new timeout. If it is not enough set it even higher...

like image 42
smentek Avatar answered Sep 19 '22 14:09

smentek