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.
Created attachment 7933 [details] strace output from the run
Sorry, the Summary should read apr_poll, not ap_poll :-(
*** This bug has been marked as a duplicate of 21495 ***
Sorry fellows :-( I actually searched Bugzilla before I posted, but found nothing. Shame on me.
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
Same here, on Debian Etch, ApacheBench 2.0.40-dev <$Revision: 1.146 $>
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