logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2.17: Very low requests/sec from other PCs
Author
art84



Joined: 15 Jan 2011
Posts: 2

PostPosted: Sat 15 Jan '11 2:17    Post subject: Apache 2.2.17: Very low requests/sec from other PCs Reply with quote

Hi,

I have Apache 2.2.17 installed with a small module set, mainly for static content:
Code:
./configure   --with-mpm=prefork  --prefix=... \
    --disable-charset-lite \
    --disable-autoindex \
    --disable-imagemap \
    --disable-userdir \
    --disable-include

OS: Arch Linux 32bit
H/W: AMD Athlon quad-code @ 3.20 GHz, 4GB RAM

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

Code:
[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 ... I think it's a very decent result even for a local test

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

Code:
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 !

Any ideas?

Thank you in advance for any help/suggestions/ideas.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 28 Jan '11 17:35    Post subject: Reply with quote

Firewall? Iptables? Fail2ban installed? How many threads do you start? How many servers?

Did you try from a different client?
Back to top
art84



Joined: 15 Jan 2011
Posts: 2

PostPosted: Thu 03 Feb '11 1:35    Post subject: Reply with quote

no firewall, no iptables, no fail2ban or something related to this
it's still for testing, it's not connected to internet or even to LAN/WAN

it's a 2 PC's direct connection without a hub/switch

the client is an older machine (AMD Athlon 64 @ 2 GHz, 1GB RAM) and the connection max. speed is limited by the clients CPU power; it is ~ 290 Mbps

ping is ~ 0.12 ms, i.e. ~ 8000 / second

Apache is 'preforked' (not threaded), 20 processes are running constantly

I did not try from another client, but there are no reasons to suspect the client. It's an ordinary Windows XP machine without any network related software, the default firewall is disabled. I'm using the ab.exe utility from the Apache 2.2.16 Windows version. Maybe something wrong with this tool on Windows ?
Back to top


Reply to topic   Topic: Apache 2.2.17: Very low requests/sec from other PCs View previous topic :: View next topic
Post new topic   Forum Index -> Apache