Composer update shows mmap() failed: [12] Cannot allocate memory

Viewed 5571

I am trying to update my compose but i get the following error message can anyone tell me what this is.

root@linuxmachine:/var/www/html/# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 815800320) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Fatal error: Out of memory (allocated 815800320) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
1 Answers

Usually that is a problem with the "memory_limit" directive in your php.ini. Try increasing the value assigned to memory_limit.

Related