Skip to content

Instantly share code, notes, and snippets.

@ummdorian
Created October 8, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ummdorian/bc0259df3e52548f9a23b28b3dab368b to your computer and use it in GitHub Desktop.
Save ummdorian/bc0259df3e52548f9a23b28b3dab368b to your computer and use it in GitHub Desktop.
Composer Memory Limits
If composer memory limit:
export COMPOSER_MEMORY_LIMIT=-1
If php memory limit:
php -d memory_limit=-1 $(which composer) {{ command goes here }}
@dorian-e3
Copy link

If you get proc_open() memory swap error:
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment