Bug 22686 - ab: apr_poll: The timeout specified has expired (70007)
Summary: ab: apr_poll: The timeout specified has expired (70007)
Status: REOPENED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.2.4
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 04:29 UTC by Bojan Smojver
Modified: 2007-11-13 18:03 UTC (History)
1 user (show)



Attachments
strace output from the run (16.75 KB, text/plain)
2003-08-25 04:30 UTC, Bojan Smojver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bojan Smojver 2003-08-25 04:29:35 UTC
With Apache 2.0.47, when I try to use ab on Red Hat Linux 9, it comes up with
the above message. The revision of ab is 1.121.2.1.

This is the command I run and the stdout:
-----------------------------------------------
# strace ab -n 1 http://localhost/ 2>strace.out
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...
-----------------------------------------------

I will also attach the strace output.
Comment 1 Bojan Smojver 2003-08-25 04:30:26 UTC
Created attachment 7933 [details]
strace output from the run
Comment 2 Bojan Smojver 2003-08-25 04:34:08 UTC
Sorry, the Summary should read apr_poll, not ap_poll :-(
Comment 3 Jeff Trawick 2003-08-25 18:47:19 UTC

*** This bug has been marked as a duplicate of 21495 ***
Comment 4 Bojan Smojver 2003-08-25 22:15:48 UTC
Sorry fellows :-( I actually searched Bugzilla before I posted, but found
nothing. Shame on me.
Comment 5 Thibaud Roussillat 2007-04-13 06:49:48 UTC
Same error with Apache 2.2.4 on Red Hat AS 3.0. The error happens with the
following command and always near the 40000th request:

./ab -n 100000 -c 5 -p
/exec/applis/snuproxitaltel/current/sh/server-test-req-real.xml
http://localhost:3333/snuproxitaltel

more /etc/redhat-release : Red Hat Enterprise Linux AS release 3 (Taroon Update 6) 
uname -a : Linux opsnu1t1 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005
i686 i686 i386 GNU/Linux).

./ab -V : This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

-------------------------

I never encounter the problem on an other Red Hat machine :
more /etc/redhat-release : Red Hat Enterprise Linux AS release 3 (Taroon Update 3)
uname -a : Linux dflp0ee9 2.4.21-20.0.1.ELsmp #1 SMP Wed Nov 24 20:34:01 EST
2004 i686 i686 i386 GNU/Linux
Comment 6 Bertrand Croq 2007-10-03 06:51:31 UTC
Same here, on Debian Etch, ApacheBench 2.0.40-dev <$Revision: 1.146 $>
Comment 7 Vance Lankhaar 2007-11-13 15:46:45 UTC
I still see this time out using the latest (or at least very recent) ab / apr /
apu combination:

http revision: http://cvs.apache.org/snapshots/httpd/httpd_20071113171835.tar.gz 
apr revision: SVN r594698
apr-util revision: SVN r594698

When I try to benchmark a page that takes approximately 30 to 60 seconds to
load, I (almost always) get an apr_poll timeout after 30 seconds:

v@kuskanook:~/src/httpd_20071113171835/support$ time ./ab -r -t 120 "$SLOWURL"
This is ApacheBench, Version 2.3 <$Revision: 573101 $>
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_poll: The timeout specified has expired (70007)

real    0m30.004s
user    0m0.000s
sys     0m0.001s