After Composer update got this error.
HP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4096 bytes) in /usr/share/php/Composer/DependencyResolver/Solver.php on line 220 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4096 bytes) in /usr/share/php/Composer/DependencyResolver/Solver.php on line 220 Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors
First Try the following solution :
increase swap memory if your memory is low.
https://forum.equaltrue.com/topics/swap-memory-create-in-server-lniux-ubuntu/
If not working,
then first
curl -sS https://getcomposer.org/installer | php
this will create composer.phar file which can used later.
Now use this command to install the required file :
php -d memory_limit=-1 composer.phar update
It’s working finally.
Actually my server ram is only 512 MB that’s why i need this type of solution.
Thanks