Add to Favorites
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > VPS, Dedicated & Colocation Hosting > OpenVZ Error : Cannot allocate memory
forgot password?


Reply


Old
  Post #1 (permalink)   06-22-2007, 02:40 AM
HD Newbie
 
Join Date: Jun 2007
Posts: 17

Status: eukvps is offline
If you start receiving such type of error messages on VPS then you are running short of some of resources that are allocated to your VE, you can check which resource is causing problems by running following command from shell of VE you are facing problems with or from Node.

PHP Code:
root@master [/]# cat /proc/user_beancounters
Version2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      110
:  kmemsize        4646467    6826885   12752512   22752512        815
            lockedpages           0          0         32         32          0
            privvmpages       89524     102297      98304     107150      35698
            shmpages            219        987       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              67         98        130        130          0
            physpages         34938      45456          0 2147483647          0
            vmguarpages           0          0      98304 2147483647          0
            oomguarpages      34938      45456       6144 2147483647          0
            numtcpsock           25         73         80         80          0
            numflock              9         17        100        110          0
            numpty                1          1         16         16          0
            numsiginfo            0         16        256        256          0
            tcpsndbuf             0     319748     319488     524288          3
            tcprcvbuf             0     220260     638976    1048576          0
            othersockbuf      24596     134300     132096     336896       8822
            dgramrcvbuf           0       8380     264192     264192          0
            numothersock         24         48         80         80          0
            dcachesize            0          0    1048576    1097728          0
            numfile            1263       1832       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         57        128        128          0
root
@master [/]
check failcnt colum it will display number of failures due to inappropriate allocation of particular resource to VPS
you can increase particular resource by editing configuration file for particular VE, you can find configuration fle at /etc/vz/conf/VEID.conf replace VEID with actual VE ID in our case it would be 110.conf, find resurce that is having maximum of failure count increase it to some higher extent and then restart VE.

Or you can run following command to increase resource
vzctl set <VEID> --<resource name> barrier:limit --save
for eg.
vzctl set 110 --privvmpage 107150:117150 --save

__________________________________________________ __________________________________________________ __________________________________________________ _________________________________
Arun K
http://eukvps.com
 
 
 


Old
  Post #2 (permalink)   06-22-2007, 10:19 AM
HD Amateur
 
Join Date: Apr 2007
Posts: 98

Status: RackVibe is offline
Hey, thanks for that. I've been testing OpenVZ and had that issue, now I know how to fix it.
 
 
 


Old
  Post #3 (permalink)   07-04-2007, 04:50 PM
HD Newbie
 
Join Date: Jul 2007
Posts: 8

Status: expedio is offline
Thanks for the info. Is there any way to integrate SLM in openvz?
__________________
Expedio Servers Clustered Dedicated Servers

Failsafe Clusters | Fully Redundant | Supports all leading control panels
Get 99.999% uptime even if hardware fails!
 
 
 


Old
  Post #4 (permalink)   07-23-2007, 05:53 AM
HD Newbie
 
Join Date: Jun 2007
Posts: 17

Status: eukvps is offline
Quote:
Originally Posted by expedio
Thanks for the info. Is there any way to integrate SLM in openvz?
Nope SLM is SWSoft's feature , and thus it cannot be integrated with OpenVZ, will have to purchase Virtuzzo for that.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On