contentacms / contenta_jsonapi

Contenta CMS, the decoupled Drupal
http://www.contentacms.org/
GNU General Public License v2.0
328 stars 104 forks source link

un able to update my packages on ubuntu server via composer in laravel application #368

Closed isahlabbo closed 4 months ago

isahlabbo commented 5 years ago

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory (allocated 698359808) (tried to allocate 20480 bytes) in /usr/share/php/Composer/DependencyResolver/RuleSetGenerator.php on line 126

Fatal error: Out of memory (allocated 698359808) (tried to allocate 20480 bytes) in /usr/share/php/Composer/DependencyResolver/RuleSetGenerator.php on line 126

djvilione commented 5 years ago

Try:

COMPOSER_MEMORY_LIMIT=-1 composer update --with-dependencies;

isahlabbo commented 5 years ago

I created swap file on the server and it works perfectly