1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

OpenVZ Error : Cannot allocate memory

Discussion in 'Security' started by eukvps, Jul 6, 2007.

  1. #1
    Hello,

    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.

    
    
    root@master [/]# cat /proc/user_beancounters
    Version: 2.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 [/]#
    
    
    
    HTML:
    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
     
    eukvps, Jul 6, 2007 IP
  2. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    this vps is been limit with RAM/CPU.. thus it give that error.
     
    Mxhub, Jul 8, 2007 IP
  3. randomIntellections

    randomIntellections Well-Known Member

    Messages:
    985
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    180
    #3
    just use hypervm instead of having to face problems with command line .
     
    randomIntellections, Jul 19, 2007 IP