acchu1986
By:
acchu1986

Composer Install - Not enough memory

January 22, 2014 5.1k views
I used 512MB Droplet .. Composer gave an error of not enough memory and got killed. I resized to 1 GB droplet and tried again still I get the "Cannot allocate memory" Has anyone encountered and resolved, if so please help out with a solution. Thanks
2 Answers
Have you tried to create a SWAP file?

1. https://www.digitalocean.com/community/articles/how-to-configure-virtual-memory-swap-file-on-a-vps
2. https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
by Etel Sverdlov
Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04

I followed the first link, it worked perfectly. Thanks!

Have another answer? Share your knowledge.