httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <>
Subject Re: Apache Bench and Wild Fluctuations
Date Thu, 09 Aug 2001 15:35:04 GMT
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

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.


View raw message