You are not logged in.

#1 2011-01-14 23:24:26

art84
Member
Registered: 2010-12-05
Posts: 41

very slow apache

Hi

The last days I was setting up my Arch 'home server', installed some apps, etc.
Now I started testing how this works and I'm a little confused.

I have Apache 2.2.17 installed with a small module set, mainly for static content:

./configure   --with-mpm=prefork  --prefix=... \
    --disable-charset-lite \
    --disable-autoindex \
    --disable-imagemap \
    --disable-userdir \
    --disable-include

I've done some benchmarking with the provided ab tool and locally I get:

[root@zion bin]# ./ab -n 10000 -c 10 http://localhost/file.html
...
Document Path:          /file.html
Document Length:        60183 bytes
Concurrency Level:      10
Time taken for tests:   0.602 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      604440438 bytes
HTML transferred:       601890183 bytes
Requests per second:    16599.05 [#/sec] (mean)
Time per request:       0.602 [ms] (mean)
Time per request:       0.060 [ms] (mean, across all concurrent requests)
Transfer rate:          979798.73 [Kbytes/sec] received

so, ~16600 reqs/s ... a decent result smile  (well, I have a AMD Athlon quad-core @ 3.20 GHz + 4 GB ram; launched 20 preforked apache processes)

Then I tested from another PC connected to this one through a 1Gbit connection (iperf reports ~ 290 Mbit/s between these 2 PCs).
The results stunned me:

D:\web\apps\apache2\bin>ab -n 100  http://192.168.1.2/file.html
...
Document Path:          /file.html
Document Length:        60183 bytes
Concurrency Level:      1
Time taken for tests:   7.843750 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      6043800 bytes
HTML transferred:       6018300 bytes
Requests per second:    12.75 [#/sec] (mean)
Time per request:       78.438 [ms] (mean)
Time per request:       78.438 [ms] (mean, across all concurrent requests)
Transfer rate:          752.45 [Kbytes/sec] received

Only ~13 reqs/s !

I suppose there is something related to network.
Any ideas?

Offline

Board footer

Powered by FluxBB