Fatal error: Out of memory (allocated 363331584) (tried to allocate 10343341 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Repository/ComposerRepository.php on line 339 · Issue #7721 · composer/composer · GitHub
Cannot allocate memory, over 1g available · Issue #8400 · composer/composer · GitHub
Running out of memory when executing composer inside a docker container - Stack Overflow
proc_open(): fork failed-can not allocate memory, error on aws ec2 instance while updating/installing some libraries or packages using composer | by Ziaur Rahman | Medium