google-code-export / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
1 stars 1 forks source link

RAM limits per VPS #422

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1.I have this issue.

When I restart a VPS I see a no limited RAM when I do # free  inside a VPS.
I see
[root@ND-11907 log]# vzctl exec 106 free
             total       used       free     shared    buffers     cached
Mem:       8052676    6950852    1101824          0     380404    5033992
-/+ buffers/cache:    1536456    6516220
Swap:      8385920        176    8385744

but when I manually re-aply limits with the web panel

Processing Admin::VirtualServersController#save_limits (for xxxxxxxx at 
2012-04-12 11:23:45) [POST]
  Parameters: {"controller"=>"admin/virtual_servers", "action"=>"save_limits", "limits"=>"[{\"name\":\"KMEMSIZE\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"LOCKEDPAGES\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"SHMPAGES\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMPROC\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"PHYSPAGES\",\"soft_limit\":\"0\",\"hard_limit\":\"131072\"},{\"name\":\"VMGUARPAGES\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"OOMGUARPAGES\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMTCPSOCK\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMFLOCK\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMPTY\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMSIGINFO\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"TCPSNDBUF\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"TCPRCVBUF\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"OTHERSOCKBUF\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"DGRAMRCVBUF\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMOTHERSOCK\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"DCACHESIZE\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMFILE\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"AVNUMPROC\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"NUMIPTENT\",\"soft_limit\":\"\",\"hard_limit\":\"\"},{\"name\":\"DISKINODES\",\"soft_limit\":\"200000\",\"hard_limit\":\"220000\"},{\"name\":\"SWAPPAGES\",\"soft_limit\":\"0\",\"hard_limit\":\"262144\"}]", "id"=>"9"}
Executing command: cat /etc/vz/conf/106.conf
Executing command: vzctl set 106  --save
Completed in 31ms (View: 0, DB: 2) | 200 OK 
[http://xxxxx/admin/virtual-servers/save_limits?id=9]

then I see this

[root@ND-11907 log]# vzctl exec 106 free
             total       used       free     shared    buffers     cached
Mem:        525312     318004     207308          0          0          0
-/+ buffers/cache:     318004     207308
Swap:   4589934588          4 4589934584

Conclution, to fix it I have to manually run limits again on every vps

It is just a cosmetical issue but it is important if I wan t to reselle VPSs

Actual result:

Expected result:

Version of the product: Last one

Server OS: Centos 5 64 bits

Browser: none

Additional information:

Original issue reported on code.google.com by info.ult...@gmail.com on 12 Apr 2012 at 7:40