> Does this sound like fixing the wrong problem?

Yes.  Put a reverse proxy in front of your server, tune MaxClients so
you won't go into swap, and then benchmark to see how much load you can
handle.  Then think about tuning.

Thanks for replying...

I have put a reverse procy in front of my mod_perl servers and I have set MaxClient to 30. I have tried setting it to 50, but it slows down the response time.

This is what top gave me when I hammered the test server with httperf:

----------

top - 17:24:27 up 34 days, 9:01, 4 users, load average: 20.67, 12.84, 9.26
Tasks: 142 total,   7 running, 135 sleeping,   0 stopped,   0 zombie
Cpu(s): 88.7% us,  7.6% sy,  0.0% ni,  0.0% id,  2.0% wa,  0.0% hi,  1.7% si
Mem:    906736k total,   359464k used,   547272k free,     6184k buffers
Swap:  3036232k total,   111564k used,  2924668k free,    17420k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
22802 www-data  15   0 39664  35m 7968 S 30.7  4.0   0:05.02 apache-perl
22370 www-data  16   0 39664  35m 7968 S 12.8  4.0   0:03.45 apache-perl
13604 www-data  17   0 40096  35m 7968 R  5.7  4.0   0:30.93 apache-perl
15424 root      15   0 32060 7668 1560 S  3.8  0.8   6:49.47 memcached
13611 www-data  15   0 40036  35m 7968 S  3.5  4.0   0:17.13 apache-perl
22804 www-data  17   0 39664  35m 7968 R  3.1  4.0   0:03.01 apache-perl
13612 www-data  16   0 40032  35m 7968 S  0.7  4.0   0:33.38 apache-perl

------------

I ran httperf to create 50 connections. This is the result:

1 connections per second -> avg reply time = 103953.7 ms
10 connections per second -> avg reply time = 123167.2 ms
20 connections per second -> avg reply time = 121483.7 ms
30 connections per second -> avg reply time = 114411.3 ms
40 connections per second -> avg reply time = 130168.7 ms
50 connections per second -> avg reply time = 130457.4 ms

When only creating 1 connection, the avg reply time = 3289.4 ms
When creating 10 connections, with 1 conn per second, the avg reply time = 25929.7 ms

I have no idea where to start fixing this. It seems that the more connection there is, the higher the avg reply time.

Does anyone ever experienced this? Why does it happen?
Basically I just want to make my webapp ready to launch... (doesn't anyone?)

THANK YOU...

---
Badai Aqrandista
Cheepy (?)

_________________________________________________________________
SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail

Reply via email to