httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry Baker <jerryba...@weirdness.com>
Subject Re: Apache Bench and Wild Fluctuations
Date Thu, 09 Aug 2001 15:45:05 GMT
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/

Mime
View raw message