Reboot VPS by reaching memory limit

Posted by Ali on Server Fault See other posts from Server Fault or by Ali
Published on 2012-09-11T13:46:12Z Indexed on 2012/09/11 15:40 UTC
Read the original article Hit count: 359

Filed under:
|
|
|
|

When a server uses memory more than available RAM, the system will shut down the virtual machine. Then, it is only possible to boot from outside (VPS control panel, e.g. vePortal or SolusVM). However, it should be possible to plan a reboot before possible shut down.

What is the best practical method to check the used memory, and reboot the system upon reaching e.g. 90% of the allowed RAM? Is there a common program or script to do so? I am using Debian/Ubuntu.

© Server Fault or respective owner

Related posts about linux

Related posts about vps