Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having difficulty with memory usage on my VPS (CentOS) running PHP sites.

Until now I have been able to change things and reboot to try to analyze and fix things before the memory usage climbs again, but now when I type reboot it can't even do that.

How can I reboot my VPS machine and get out of this catch-22?

alt text

5 minutes later: now memory is almost totally maxed out, what could be causing this and how can I begin to fix it when the response time when logged in via SSH is so slow?

alt text

share|improve this question
up vote 2 down vote accepted

Press the virtual power button (the VPS control panel provided by your hosting company should have this capability).

share|improve this answer
In addition, I'd suggest running with at least a little bit of swap. The Linux kernel becomes very perturbed on a system with 0 swap. – mikegrb Sep 16 '09 at 3:56
no swap is definently asking for trouble. – Antoine Benkemoun Dec 10 '09 at 14:35

Your VPS providers control panel may also have a feature which allows you to borrow additional ram for short periods of time to get out of tight spots like this.

share|improve this answer

Your Answer


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.