Perfect Server Wheezy Apache2 in OpenVZ reports 0 total memory

Discussion in 'HOWTO-Related Questions' started by Eddy Buhler, Nov 1, 2014.

  1. Eddy Buhler

    Eddy Buhler New Member


    this may be a triviality...I've installed a Perfect Server inside an OpenVZ container (Proxmox Host, Debian 7.0 default template).

    free -b gives me the following output:

                 total       used       free     shared    buffers     cached
    Mem:             0 2832019456 1462947840          0          0 2637443072
    -/+ buffers/cache:  194576384 4100390912
    Swap:            0          0          0
    My question is: why is the memory total displayed as 0, and how can I fix it to display the actual amount of memory available to the OpenVZ container?

    ( for one relies on this value, but I can imagine other things not working right with "0" total memory, so I'd rather fix it than ignore it)
  2. srijan

    srijan New Member HowtoForge Supporter

  3. Eddy Buhler

    Eddy Buhler New Member

    Thanks for your reply, but actual memory usage is not the problem (the VM has 8G, of which around 1.5-3G are being used).

    The issue is that "free" reports 0 Bytes of total memory available (instead of the 8G).

    In htop I see all 8G, so I'm assuming there is some OpenVZ configuration that can be done to fix this.

    Does anybody have an idea?

Share This Page