Create a 1G Swap File (Good for 512k Memory instances)
By
masterbee // 9 years ago
More times than not if you create a 512kb instance some times during more complex composer instances you will run out of memory. This creates a 1G Swap file on your instance giving a fair bit of breathing room to operate.
Credits: https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps