EXTREMELY high load, upto 300-500

Hi guys,
I have been trying to figure out what is going on with my server for two months now, and I don't know.

At any random time of the day, my server load is USUALLY 1.30 or something like that, usually below 10 and everything's cool and what not. But then sometimes, and this happens alot spread out through the day, every day at any time, the server load will just start going up, 12, 18, 25, 49, 60, 68, 79, 88, 93, 97, 98, 112, etc all the way I've seen it go upto PAST 500, but usually when thje load hits 60, ( I keep top running on my ssh putty client 24/7 to monitor my server ) it stops updating for like 30 seconds, then a bunch of really fast updates, then pauses again, then before I know it, 5 minutes have past and I see it update and shows my load is past 300.

I ctrl +c to close top, the do "killall -9 http;service httpd restart;top;" , and in a few minutes top shows again and the load is like at 100 again and my sites start loading and the load keeps going down in increments of like 2 per top refresh interval.

How can I find out what is causing this and fix the issue?




ALSO, PART 2~!!!!! I have a good sized site that gets pageviews, and I have 30 - 160 x 120 images on my main page, and then like a few 468x60, and then a few logo's, all together like 50 images on my page, and I can't / don't want to put less images.

When I load my page, I sometimes get a 403 forbidden error (in the iframes for ads) and some of the 160x120 images don't load. I think this has to do with apache killing too many connections or something, how can I fix this?

I have keep alive on and set to like 8 seconds, and like 1000 requests per child.

HEre's my exact settings:

Timeout 30
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 9
MinSpareServers 20
MaxSpareServers 50
StartServers 30
MaxClients 1024
MaxRequestsPerChild 1000

Are these good or bad or what? I've been fluxating and it really just doesn't seem to make a difference, or I don't know what I should be messing with.

I'd appreciate some help with fixing the "image not loading problem" and also the load skyrocketing.

 

 

 

 

Top