In this post I will show you how to manage your VE memory on OpenVZ VPS.

Here are some example commands that will help you to adjust the RAM for  OpenVZ:

256MB Guaranteed, 512MB Burstable
vzctl set 101 --vmguarpages 256M --save
vzctl set 101 --oomguarpages 256M --save
vzctl set 101 --privvmpages 256M:512M --save

512MB Guaranteed, 1024MB Burstable
vzctl set 101 --vmguarpages 512M --save
vzctl set 101 --oomguarpages 512M --save
vzctl set 101 --privvmpages 512M:1024M --save

1024MB Guaranteed, 2048MB Burstable
vzctl set 101 --vmguarpages 1024M --save
vzctl set 101 --oomguarpages 1024M --save
vzctl set 101 --privvmpages 1024M:2048M --save

NOTE: 101 is your VPS veid.

Page 1 of 11