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 VPS which hosts a site (http://www.tanguay.info/web) which gets about 1800 unique visitors per day.

The site ran fine getting 3-second response times for weeks.

All of a sudden on Friday at 4PM the site became inaccessible with response times at 30+ seconds and has been down ever since. Here is the pingdom graph:

alt text

Even after rebooting it numerous times, I cannot get response times back below 30 seconds. With the "top" command I see that there are 30+ Apache processes running which seem to be taking up over 90% of the memory.

What could be causing this? Why would there be so many Apache processes open, especially since the site is basically inaccessible now anyway? Could it be that these processes are simply not getting closed somehow?

alt text

share|improve this question
add comment

3 Answers

You're on a Virtuozzo/OpenVZ-based virtual machine (based on the top screenshot you posted). Something else is probably hammering the machine that you're on, since that top output doesn't really show anything abnormal (17MB RES for an Apache process is quite reasonable). I'd talk to your hosting provider about not overloading their VM servers quite so much, or find a better VM provider.

share|improve this answer
    
huh? How did you determine that they are on a Virtuozzo/OpenVZ-based virtual machine, based off of top? (just curious.) –  Joe Nov 10 '09 at 19:52
1  
No swap, no buffers, no cache. I'm not aware of any other virtualisation system that makes that much of a hash of the VMM stats. –  womble Nov 11 '09 at 5:53
add comment

Static content do not suffer, the problem is probably in database. Inspect MySQL slow querires log at /var/log/mysql/mysql-slow.log. Apache mod_status also maybe useful, it will show status page like this.

share|improve this answer
add comment

Seeing all the processes marked with a D, I'm thing that the disk sub system may have been overloaded.

share|improve this answer
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.