here are something wrong in your server.
Thank you, after OVZ VPS (CentOS 6 64bit) reboot, VPS shown 624MB RAM used
OpenVZ host server (CentOS 6.x) has this setting for the VPS:
PHYSPAGES="0:unlimited"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"
when i set that VPS to use
VSwap (vzctl set CTID --ram 768M --save), then VPS has this setting:
PHYSPAGES="0:196608"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"
when i run free -mt again on the VPS, RAM figures are way different:
# free -mt
total used free shared buffers cached
Mem: 768 286 481 3 0 155
-/+ buffers/cache: 130 637
Swap: 256 0 256
Total: 1024 286 737
in case of interest, beancounters are like this:
# vzubc 3500
----------------------------------------------------------------
CT 3500 | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
kmemsize|20.4M 1% 1%|63.7M 3% 3%| 2G| 2G| -
lockedpages| - - - |2.12M 10% 10%|19.5M|19.5M| -
privvmpages| 778M 76% 76%| 968M 94% 94%| 1G| 1G| 6.59K
shmpages|1.71M 0.2% 0.2%|8.26M 1% 1%| 768M| 768M| -
numproc| 176 3% 3%| 297 5% 5%|4.88K|4.88K| -
physpages| 283M - - |1.68G - - | - | - | -
vmguarpages| - - - | - - - | 768M| - | -
oomguarpages| 107M 14% - | 186M 24% - | 768M| - | -
numtcpsock| 26 0.1% 0.1%| 53 0.1% 0.1%|39.1K|39.1K| -
numflock| 25 0.5% 0.5%| 60 1% 1%|4.88K|4.88K| -
numpty| - - - | 2 0.1% 0.1%|2.44K|2.44K| -
numsiginfo| 1 - - | 117 2% 2%|4.88K|4.88K| -
tcpsndbuf| 442K 0.3% 0.1%| 902K 0.6% 0.3%| 153M| 309M| -
tcprcvbuf| 416K 0.3% 0.1%|9.73M 6% 3%| 153M| 309M| -
othersockbuf|42.9K - - |83.2K 0.1% - | 153M| 309M| -
dgramrcvbuf| - - - |8.52K - - | 153M| 309M| -
numothersock| 44 0.1% 0.1%| 59 0.1% 0.1%|39.1K|39.1K| -
dcachesize|6.03M 13% 13%|43.9M 100% 100%|43.9M|43.9M| -
numfile|1.28K 1% 1%|2.05K 2% 2%| 117K| 117K| -
numiptent| 27 0.5% 0.5%| 27 0.5% 0.5%|4.88K|4.88K| -
swappages| - - - |71.6M - 28%| - | 256M| -
----------------------------------------------------------------
i am not sure why without vswap (without physpages being set) RAM usage seems soo high. But now it
seems that indeed KloxoMR 7 can live with 256MB RAM and some SWAP in case RAM is low.
Another OpenVZ obstacle was that when i create OSTemplate out of running VPS and restored it on new VPS with other IP, i found that /proc/user_beancounters shown memory failure, VPS told: "Unable to fork: Cannot allocate memory", Kloxo was not accessible. Solution? I had to comment out PRIVVMPAGES variable in /etc/vz/conf/CTIDHERE.conf (just placing # before PRIVVMPAGES) & then reboot VPS. Kloxo started working, except it shows old IP in Kloxo/Resource/IP addresses (
http://IPHERE:7778/display.php?frm_action=list&frm_o_cname=ipaddress)