It is currently Sun Dec 22, 2024 5:28 am

News News of OpenVZ related

Site map of OpenVZ related » Forum : OpenVZ related

Here one can find interesting information about OpenVZ management and maintenance. OpenVZ control panels information also goes here
Forum rules
All information is given AS IS


OpenVZ vm Server Memory Usage (script)

Server Memory Usage (script)

Ever wondered how much memory you are currently using and how close you are to the QoS hard limit?

Here is a simple script that calculates the QoS hard memory limit and the current memory usage:

#!/bin/sh

# Make sure we are running under a VPS system with QoS
if [ ! -f "/proc/user_beancounters" ]; then
echo "File \"/proc/user_beancounters\" does not exist. Make sure this script runs on a VPS system ...
Read more : OpenVZ vm Server Memory Usage (script) | Views : 3502 | Replies : 0


OpenVZ/cPanel specific Apache memory limit (RlimitMEM)

Apache memory limit (RlimitMEM)

If you are using cPanel/WHM then you've got an option in your WHM to limit memory usage by apache processes (RLimitMEM), the option is under Security -> Modify Apache Memory Usage.

This option executes the script: /scripts/apachelimits. It works fine on dedicated systems, it reads the /proc/meminfo file for the currently installed memory and sets the limit accordingly.

Unfortunately the script is useless on a VPS, since a VPS uses a ...
Read more : OpenVZ/cPanel specific Apache memory limit (RlimitMEM) | Views : 3159 | Replies : 0




OpenVZ vmguarpages and privvmpages description

vmguarpages: memory allocation guarantee.
This parameter controls how much memory is available to the Virtual Private Server (i.e. how much memory its applications can allocate by malloc(3) or other standard Linux memory allocation mechanisms). The more clients are served or the more "heavy" the application is, the more memory it needs.

The amount of memory that Virtual Private Server's applications are guaranteed to be able to allocate is specified as the barrier of vmguarpages parameter. ...
Read more : OpenVZ vmguarpages and privvmpages description | Views : 7693 | Replies : 1


OpenVZ control

#vzctl enter 270
enter into VE 270 failed
Unable to open pty: No such file or directory

Execute following commands to create tty and pty devices:
Code: Select all
vzctl exec 270 /sbin/MAKEDEV pty
vzctl exec 270 /sbin/MAKEDEV tty

Sometimes, after "Fix Centos Dev" command, following should be executed:
Code: Select all
vzctl exec 101 MAKEDEV ptmx

To change hostname of the currently existing virtual machine, use following command:
Code: Select all
vzctl set VMID --hostname srv1.domain.com --save

To add/remove IP from the ...
Read more : OpenVZ control | Views : 5660 | Replies : 1


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron