pip install out of memory kill process
- By Preneesh AV --
- 15-Aug-2018 --
- 67 Comments
Quick fix if you are running a low memory server or vps. Extend your RAM by adding a swap file.
A swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the server.
In Short:( for adding 500Mb of RAM we set 524288)
- Login as root:
su -or execute the commands withsudoin front dd if=/dev/zero of=/swapfile1 bs=1024 count=524288mkswap /swapfile1chown root:root /swapfile1chmod 0600 /swapfile1swapon /swapfile1
Now the swap file will be activated temporarily, but will be gone after reboot.You should have enough RAM for your installing process
To Remove the File:
swapoff -v /swapfile1rm /swapfile1
