Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 97342 invoked by uid 500); 9 Aug 2001 15:45:05 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 97319 invoked from network); 9 Aug 2001 15:45:05 -0000 Message-ID: <3B72B001.A43568E1@weirdness.com> Date: Thu, 09 Aug 2001 09:45:05 -0600 From: Jerry Baker X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: Apache Bench and Wild Fluctuations References: <3B720217.383F654E@weirdness.com> <3B72ADA8.E9B41690@remulak.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Envelope-Receiver: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 337 Greg Ames wrote: > > Jerry Baker wrote: > > > > Sometimes 2.0.24-dev is faster, and sometimes it is a lot slower using > > localhost to bench it. Here are the results for 5 test conducted with ab > > -n 1000 -c 100 http://localhost/: > > > > Requests per second: 356.63 > > Requests per second: 206.78 > > Requests per second: 350.39 > > Requests per second: 53.57 > > Requests per second: 74.69 > > > > Is AB not a good benchmark tool, or is the problem with Apache? > > You may be seeing all the ephemeral ports getting used up on your ab > machine. Doesn't matter whether it's local or not, as far as this > problem goes. > > If this is Linux and you have the sysctl RPM, you can do: > > sysctl net.ipv4.ip_local_port_range > > to see what you have for ephemeral ports. The default is around 4K > IIRC. > > To change it, do (as root): > > sysctl -w net.ipv4.ip_local_port_range="1024 65000" > > to set it to something reasonable for a web benchmarking client box. > > If you're curious, you can also do: > > netstat -t | grep TIME_WAIT | wc > > to see all how many connections you have stuck in this state when you > see the problem. > > Greg The problem is cured by taking focus away from the AB window. This is on Win32. For some reason if the DOS window has focus, it can get really slowed down - even if out put is redirected to a file. -- Jerry Baker PGP Key: http://www.jerrybaker.org/pgp.html LAME MP3 Encoder Binaries: http://www.jerrybaker.org/lame/ Apache 2.0 Web server Installer: http://www.jerrybaker.org/apache/