proc_open(): fork failed - Cannot allocate memory in phar
Today I got an error while I was making updates to my laravel app because of a lack of memory in my digitalocean droplet.
I was reading some documentation and the solution was set up a swap file:
"Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. Basically, this gives you the ability to increase the amount of information that your server can keep in its working "memory", with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data." as the documentation says we need to configurate the swap area so that composer can do it's thing.
The solution
sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
sudo mkswap /swapfile
sudo swapon /swapfile
composer update
Regards!
I was reading some documentation and the solution was set up a swap file:
"Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. Basically, this gives you the ability to increase the amount of information that your server can keep in its working "memory", with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data." as the documentation says we need to configurate the swap area so that composer can do it's thing.
The solution
sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
sudo mkswap /swapfile
sudo swapon /swapfile
composer update
Regards!
Comentarios
Publicar un comentario