Urgent, high server load. Optimize Apache

For the past week, my server has been stalling often, causing me to limit # of connections per IP. I have a forum with a multimedia section, limitipconn_mod installed (2 connections per IP set). At peak times, the load is very high (over 20, sometimes 80) which caused the server to not respond, I know it's Apache that is taking all the resouces. There's about 150 httpd connections, all downloading big media files. It's bogging down the server, P4 3Ghz with 1G of ram.

Here's my httpd.conf config. Could someone help me tweak it?

Timeout 50
KeepAlive On
MaxKeepAliveRequests 1000
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 300
MaxRequestsPerChild 0

I restarted Apache, now the server seems to be back to normal

here is the output of top -c
13:51:16 up 1 day, 11:21, 2 users, load average: 0.70, 7.99, 17.44
280 processes: 275 sleeping, 4 running, 1 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 1.6% 15.0% 5.5% 0.0% 0.0% 0.0% 77.7%
cpu00 1.5% 9.6% 8.8% 0.0% 0.0% 0.0% 80.0%
cpu01 1.7% 20.3% 2.3% 0.0% 0.0% 0.0% 75.5%
Mem: 1033064k av, 1005104k used, 27960k free, 0k shrd, 11556k buff
304924k active, 342332k inactive
Swap: 1052248k av, 173264k used, 878984k free 610544k cached
Thanks so much, I know Apache isn't optimized Urgent, high server load. Optimize Apache

 

 

 

 

Top