Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So there is a VPS with openvz virtualization, with debian 6.0 32 bit The problem is appearing approx. 1 week ago. The automatic security monitoring system is shutting down the vps that i'm running due to cpu overload! I am linking the /etc/apache2/apache2.conf

If you could help somehow without access then thank's in advance! If you need more files then please ask and i will try to post them!

share|improve this question
    
show us output of netstat -patn while high CPU usage will be observed. Also a top output would be useful. Are you using X of some sort? like gnome or KDE or is it only console accessed server? What kind of hardware do you have? CPU / RAM –  mnmnc Aug 23 '12 at 16:04
    
it is only console access 1 vcpu 2GHZ 2GB RAM 25GB SSD –  rsz Aug 23 '12 at 16:09
    
ok. if you type in the console top you will see column CPU% it will show you the usage percentage per process that particular process is using. show us top 10 or top 15 of those processes. –  mnmnc Aug 23 '12 at 16:14
    
okay i am waiting until the cpu is on 100% –  rsz Aug 23 '12 at 16:21
    
80 will be totaly enough. –  mnmnc Aug 23 '12 at 16:22

1 Answer 1

Change the config by limiting possible clients and threads:

ThreadLimit          40
MaxClients           40

If it will help - OK. If not - cut it more.

I can see in netstat output that a lot of connections are originated from one IP address. This might mean that your site is poorly constructed - for example lots of iframes - each one of them will generate a thread on your side. You might want to redesign the site. Also check how big is your site and if you got a lot of pictures in hight definition and so on... Think about free cloud cache services like cloudflare.com it might free your CPU a bit.

share|improve this answer
    
okay will try and if worked I will accept the answer, thanks for now! –  rsz Aug 23 '12 at 16:58
    
remember to run apache2ctl restart after changes. –  mnmnc Aug 23 '12 at 17:00

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.