Sunday, October 14, 2012

Unlimited openvz setup

source: http://blog.eukhost.com/webhosting/how-to-remove-openvz-limits-on-a-vps/


These are the commands useful for quick removal of limits on a VPS. These is valuable while making OpenVZ ready and available in a load balanced or busy environment.
Note:”save” will save them in the configuration file for when you restart it. The settings will be lost if you do not supply the argument when the VPS is rebooted.
Use the below stated syntax if you see something that is near the limit use
clear; cat /proc/user_beancounters
vzctl set 101 –tcpsndbuf 999999999:999999999 –save
vzctl set 101 –tcprcvbuf 999999999:999999999 –save
vzctl set 101 –numtcpsock 999999999:999999999 –save
vzctl set 101 –numflock 999999999:999999999 –save
vzctl set 101 –othersockbuf 999999999:999999999 –save
vzctl set 101 –numothersock 999999999:999999999 –save
vzctl set 101 –numfile 999999999:999999999 –save
vzctl restart 101
These are the errors you migh receive without limits being raised
[crit] (105)No buffer space available: alloc_listener: failed to get a socket for 127.0.0.1

No comments:

Related Posts Plugin for WordPress, Blogger...