osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 61301] ab slows dramatically with requests >8192 bytes, httpd seems to be working correctly


https://bz.apache.org/bugzilla/show_bug.cgi?id=61301

--- Comment #2 from Luca Toscano <toscano.luca@xxxxxxxxx> ---
Hi David,

thanks a lot for the report and for setting up a live test case scenario :)

With the following quick and dirty patch (just a quick hack) I can get the 8193
file without any blocking:

Index: support/ab.c
===================================================================
--- support/ab.c        (revision 1810256)
+++ support/ab.c        (working copy)
@@ -370,7 +370,7 @@
 int requests_initialized = 0;

 /* one global throw-away buffer to read stuff into */
-char buffer[8192];
+char buffer[8192*2];

 /* interesting percentiles */
 int percs[] = {50, 66, 75, 80, 90, 95, 98, 99, 100};

The 8192 value is hardcoded in ab in a couple of places, so some
tuning/configurability might be needed?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx