Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have a 512MB vps runing on debian. I offen get high load alert from lfd titled like this:

lfd on *.com: High 5 minute load average alert - 8.43

here is 3 logs I made in 3 alert:

http://pastebin.com/fRkLUD16
http://pastebin.com/cw0TEJt2
http://pastebin.com/BRPcqCuj

what is wrong?

share|improve this question
add comment

3 Answers

Your apache using a lot of memory. Better coding maybe will solve the problem ... if not possible or the code is ok, you have to buy bigger VPS or at least configure the apache to don't let it open so many threads/processes.

Give more information to let us see if this is the problem.

share|improve this answer
1  
do you mean that high load is from RAM? I think it is from CPU usage? –  m3hdi Oct 28 '12 at 9:33
1  
@m3hdi You're swapping a LOT. You have lots of traffic and not enough RAM in your VPS. –  Michael Hampton Oct 28 '12 at 13:39
add comment

High load can be given by a number of factors; one of them is memory pressure, or I/O waiting. The latter can be represented by the processes in 'D' state in the top output.

I would say there are too many apache and php-cgi processes in 'D' state, waiting for I/O (from disk, presumably).

share|improve this answer
add comment

Yes I also think is RAM problem..

400 MB of used swap is a lot.

Swap:  1048568k total,   443696k used,   604872k free,

But, you dont use all of you RAM:

 126248k free,

And the IO/ Wait is only 1%

I recomended you install IOTOP and check what aplication swaping ( may be mysql or some cache, like wordpress cache W3TC )

Also try whit IPTRAF or IOtop for monitoring your trafic.

And check your process 25 zombies processes is bad.

share|improve this answer
    
So may be your VPS company oversilling a lot, and you dont have your guaranted RAM and therefore is swaping –  Skamasle Oct 28 '12 at 20:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.