Apache Benchmarking
Tony Hammitt
tony at speedscript.com
Mon Nov 25 22:49:15 CST 2002
It does this if the page comes back with any other length of html file, like when you have a random
ad link or some generated content that might change the length of the html file. To avoid this
when testing, I just take out the randomness, either by removing all but one ad link from the pool
or putting in some static string that's the average length.
ab doesn't load any referred-to links, just the basic html that you see with 'show source' in a
browser, so it's not really useful for actually gauging how long it takes to load a page.
Fortunately, Mozilla displays the page load time, so you can get estimates from that instead.
Jason Crowe wrote:
>
> I am running ab (apache benchmark) on our company website. The problem
> is with the failed request. It is showing 84 failed request out of 100.
> I don't know where to go from here. It has been this way for almost a
> year & I haven't had a single complaint yet. I am not even sure that I
> should worry about it.
>
> I have included the output of the ab command.
>
> Thanks,
> Jason
> --------------------------------------
> # ab -c 2 -n 100 http://www.midwestglove.com/sitemap.php
> This is ApacheBench, Version 1.3d <$Revision: 1.65 $> apache-1.3
> Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Copyright (c) 1998-2002 The Apache Software Foundation,
> http://www.apache.org/
>
> Benchmarking www.midwestglove.com (be patient).....done
> Server Software: Apache/1.3.26
> Server Hostname: www.midwestglove.com
> Server Port: 80
>
> Document Path: /sitemap.php
> Document Length: 18358 bytes
>
> Concurrency Level: 2
> Time taken for tests: 32.970 seconds
> Complete requests: 100
> Failed requests: 84
> (Connect: 0, Length: 84, Exceptions: 0)
> Broken pipe errors: 0
> Total transferred: 1866036 bytes
> HTML transferred: 1846644 bytes
> Requests per second: 3.03 [#/sec] (mean)
> Time per request: 659.40 [ms] (mean)
> Time per request: 329.70 [ms] (mean, across all concurrent requests)
> Transfer rate: 56.60 [Kbytes/sec] received
>
> Connnection Times (ms)
> min mean[+/-sd] median max
> Connect: 0 3 31.7 0 318
> Processing: 317 653 172.2 639 1367
> Waiting: 241 646 178.1 638 1366
> Total: 317 657 174.8 644 1367
>
> Percentage of the requests served within a certain time (ms)
> 50% 644
> 66% 708
> 75% 741
> 80% 745
> 90% 953
> 95% 982
> 98% 998
> 99% 1089
> 100% 1367 (last request)
>
More information about the Kclug
mailing list