Skip to content

Instantly share code, notes, and snippets.

@wagura-maurice
Created November 14, 2019 11:53
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 wagura-maurice/0d0843a4ba53287f871b73b08772d764 to your computer and use it in GitHub Desktop.
Save wagura-maurice/0d0843a4ba53287f871b73b08772d764 to your computer and use it in GitHub Desktop.
Composer update runs out of memory
df -h
dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
mkswap /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo 'echo "/swapfile none swap defaults 0 0" >> /etc/fstab' | sudo sh
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment