Extend or Increase swap memory size in Linux
Increase the swap size in Linux systems and activate it on the system boot.
Increase the swap size in Linux systems and activate it on the system boot.
Solution to the Composer cannot allocate memory or composer process killed error is installing the library locally and then copying its references from composer.lock files to the production and run composer install on production.