huanix

chown -R huanix /

huanix header image 2

Using ab (apache benchmark) to peek at my slow http server

July 8th, 2008 · 1 Comment

I’ve been running the same apache server for several years now. As a matter of fact, the 10 or 12 sites I kind of run are all running on this server  - the first server I ever built five years ago. I had no idea what I was doing, but I tinkered like a mad man.

Now I’m realizing it’s time to do a rebuild using some newer hardware and a more efficient build.. with lots less “chmod 777 *” kind of stuff going on. (When I started I discovered that chmod 777 fixes a lot!)

Anyway, here’s the output of my current ab (apache benchmark) profile. I plan to re-post the profile when I complete the server migration to see if I’ve picked up any speed… if I don’t pick up speed, I’m out of the server business! (not really)

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)

Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        599 bytes

Concurrency Level:      10
Time taken for tests:   30.521 seconds
Complete requests:      9100
Failed requests:        7
(Connect: 0, Length: 7, Exceptions: 0)
Write errors:           0
Keep-Alive requests:    9011
Total transferred:      7358059 bytes
HTML transferred:       5451054 bytes
Requests per second:    303.33 [#/sec] (mean)
Time per request:       32.968 [ms] (mean)
Time per request:       3.297 [ms] (mean, across all concurrent requests)
Transfer rate:          239.50 [Kbytes/sec] received

Connection Times (ms)
min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     3   28 831.6      3   28943
Waiting:        1   28 831.6      3   28942
Total:          3   28 831.6      3   28943

Percentage of the requests served within a certain time (ms)
50%      3
66%      3
75%      3
80%      3
90%      3
95%      3
98%      3
99%      6
100%  28943 (longest request)

Tags: Uncategorized

1 response so far ↓

  • 1 Dtek // Sep 2, 2008 at 2:39 pm

    interesting, can you post some stats about your old and new hardware?
    I have two servers now, 1 dual pIII 800Mhz and 1 dual xeon 1.8 Ghz. Looking to profile them both.

Leave a Comment