• GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution
    Highlighted

    Django OSError Errno 12 Cannot allocate memory

    I'm using python 3.6.3 in a virtualenv. However, I cannot run my site because of  this  "OSError: [Errno 12] Cannot allocate memory". I moved my site to my 4 yrs old laptop and it can run, I also created a fresh django project under the same environment and it works. So I think it's the vps not giving me enough memory to start serving my site.

     

    In my WHM tweak settings I tried:

    Updating “Conserve memory” from “On” to “Off”.
    “Conserve memory” was updated.
    Updating “Max cPanel process memory” from “768” to “”.
    “Max cPanel process memory” was updated.
    Updating “Allow other applications to run the cPanel and admin binaries” from “Off” to “On”.
    “Allow other applications to run the cPanel and admin binaries” was updated.
    Processing post action for Conserve memory:
    “Conserve memory” was updated.

    未命名.pngThe error shown above.

    Memory usage: (seems sufficient)

    p.png 

    Does anyone know how to fix this?

    btw: I stucked here like forever to send this post, it keeps asking me to select an additional label which I did, lol, cmon GoDaddy.......

     

    1 REPLY 1
    Solution

    Re: Django OSError Errno 12 Cannot allocate memory

    Turns out to be a segmentation fault when importing numpy.