Dhii / scotch-bedrock

2 stars 2 forks source link

VM Runs Out Of Memory #19

Open mecha opened 7 years ago

mecha commented 7 years ago

Problem

The VM is running out of memory when invoking composer dependency installation. This is because the VM is only given 1GB of memory.

This causes the composer process to terminate prematurely, causing some dependencies to not be installed.

Proposed Solution

Add a swap file. The memory specified in the Vagrantfile can remain set to 1GB. A swap file can be created so that the VM can utilize it whenever it runs low on memory.

mecha commented 7 years ago

Found a handy gist that checks for swap file existence before creating.