You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/01/25 01:53:13 UTC
DO NOT REPLY [Bug 50644] New: Add support for maximum number of
requests per Keep-Alive connection to apachebench
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
Summary: Add support for maximum number of requests per
Keep-Alive connection to apachebench
Product: Apache httpd-2
Version: 2.2.17
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: support
AssignedTo: bugs@httpd.apache.org
ReportedBy: johneagl@yahoo-inc.com
Apache bench (ab) currently doesn't allow a limit on the number of requests per
keep-alive tcp connection. The only options are a new connection per request,
or c connections over which all n requests are sent (for n/c requests per
connection). Unfortunately this does not mirror real-world traffic, as most
HTTP clients (browsers) will make ~4 requests per tcp connection.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 50644] Add support for maximum number of requests
per Keep-Alive connection to apachebench
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
--- Comment #3 from John E <jo...@yahoo-inc.com> 2011-01-24 20:05:05 EST ---
Created an attachment (id=26543)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26543)
Patch to enable limiting the number of requests per keep-alive connection
Second patch to add user-configurable limit on number of requests per
connection. Obsoletes prior patch as prior patch had different comment style
and contained a bugfix unrelated to this bug.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 50644] Add support for maximum number of requests
per Keep-Alive connection to apachebench
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
--- Comment #1 from John E <jo...@yahoo-inc.com> 2011-01-24 19:55:01 EST ---
Created an attachment (id=26542)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26542)
Patch to enable limiting the number of requests per keep-alive connection
Attached is a patch to add a flag to apachebench to allow the specification of
the number of requests per keep-alive connection to better simulate real-world
clients.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 50644] Add support for maximum number of requests
per Keep-Alive connection to apachebench
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
John E <jo...@yahoo-inc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 50644] Add support for maximum number of requests
per Keep-Alive connection to apachebench
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
John E <jo...@yahoo-inc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26542|0 |1
is obsolete| |
--- Comment #2 from John E <jo...@yahoo-inc.com> 2011-01-24 20:03:55 EST ---
(From update of attachment 26542)
Obsoleting patch -- comments do not match style and an additional bugfix is
present (to limit number of spurious requests).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 50644] Add support for maximum number of requests
per Keep-Alive connection to apachebench
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50644
Stefan Fritsch <sf...@sfritsch.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|PatchAvailable |
--- Comment #4 from Stefan Fritsch <sf...@sfritsch.de> 2011-06-22 21:14:51 UTC ---
With a large number of requests, this makes my machine run out of ports because
too many connections are in TIME_WAIT:
ab -n 100000 -c 40 -k -m 2 http://localhost/
This is ApacheBench, Version 2.3 <$Revision: 1125877 $>
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)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Test aborted after 10 failures
apr_socket_connect(): Cannot assign requested address (99)
Total of 56404 requests completed
The problem probably appears because now ab closes the connections first while
without that option, httpd closes the connections first.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org