OpenVZ Forum


Home » General » Support » malloc failed (31007702 bytes): Cannot allocate memory
malloc failed (31007702 bytes): Cannot allocate memory [message #41165] Tue, 07 December 2010 17:34 Go to next message
hxla is currently offline  hxla
Messages: 2
Registered: December 2010
Location: Brazil
Junior Member
Hello,

I'm quite new to the OpenVz tools and concepts

but I have a doubt

I have a VM on VirtualBox running Debian Squeeze 32 bits, with 512M of RAM that runs some java applications, when all applications are running I get almost 100M of free memory

I want to migrate this VM to OpenVz, then I created a VE with 512M, at least I think so, and when I start half of the applications I run it consumes all my 512M, I don't think the application is using all of this

I don't know how this work, if OpenVz needs more memory to run, or if I didn't set the VE correctly

please gives me help or explain how does it work

Thanks in advance,
Wagner
Re: malloc failed (31007702 bytes): Cannot allocate memory [message #41167 is a reply to message #41165] Tue, 07 December 2010 18:49 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Could you please post what your 'top' shows and the container settings?
Re: malloc failed (31007702 bytes): Cannot allocate memory [message #41178 is a reply to message #41167] Tue, 07 December 2010 20:01 Go to previous message
hxla is currently offline  hxla
Messages: 2
Registered: December 2010
Location: Brazil
Junior Member
the top of the container is attached

here is the /proc/user_beancounters of the container

cat /proc/user_beancounters 
Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
       38:  kmemsize                  5580910              8351866           9123104143           9123104143                    0
            lockedpages                     0                  101                  256                  256                   66
            privvmpages                128920               231903               131072               262144                56875
            shmpages                        1                 1936                21504                21504                    0
            dummy                           0                    0                    0                    0                    0
            numproc                       107                  172                  240                  240                    0
            physpages                   40936                92920                    0  9223372036854775807                    0
            vmguarpages                     0                    0           9123104143           9123104143                    0
            oomguarpages                40936                92920               262144               384000                    0
            numtcpsock                     18                   31                  360                  360                    0
            numflock                        8                   20                  188                  206                    0
            numpty                          1                    3                   16                   16                    0
            numsiginfo                      0                   36                  256                  256                    0
            tcpsndbuf                  174400               503712              1720320              2703360                    0
            tcprcvbuf                  163840               223496              1720320              2703360                    0
            othersockbuf               168776               207520              1126080              2097152                    0
            dgramrcvbuf                     0                 2312               262144               262144                    0
            numothersock                  130                  151                  360                  360                    0
            dcachesize                 561145               740818              3409920              3624960                    0
            numfile                      2182                 3093                 9312                 9312                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                  128                  128                    0



Thanks
  • Attachment: top.png
    (Size: 37.62KB, Downloaded 195 times)
Previous Topic: Kernel RHEL6 042test003.1.x86_64
Next Topic: Debian vs Centos?
Goto Forum:
  


Current Time: Sat Jul 26 00:42:02 GMT 2025

Total time taken to generate the page: 0.36243 seconds