Set Memory limit for Composer update

Check the path of the composer by below command:

which composer
O/p : /usr/local/bin/composer

Run below command to update composer

php -d memory_limit=512M /usr/local/bin/composer update