composer require drupal/… with 2 GB only ?

Hello

On a VPS with 2 GB ram only, I can install D8.4.0 with Composer

but I cannot install a module !

——————————————-

php -d memory_limit=-1  ../composer.phar require drupal/pathauto -vvv

Dependency resolution completed in 0.001 seconds
Package operations: 3 installs, 0 updates, 0 removals
Installs: drupal/token:1.0.0, drupal/ctools:3.0.0, drupal/pathauto:1.0.0
Patching is disabled. Skipping.
  – Installing drupal/token (1.0.0): 
Failed: [ErrorException] 0: proc_open(): fork failed – Cannot allocate memory

Installation failed, reverting ./composer.json to its original content.
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-f… for details

                                                     
  [ErrorException]                                   
  proc_open(): fork failed – Cannot allocate memory  
                                                     
——————————————-

On this VPS, I don’t have root access (OVH Cloud Web beta, managed by OVH), so I cannot create a swap file.
As it’s a beta test, I cannot simply pay more to have a bigger “Cloud Web” with 4 or 8 GB memory…

What is the minimum memory for Composer with D8.4.0 ?

It’s incredible that the site is UP , so enough memory for Drupal itself …
but NOT enough memory to install a MODULE !

No way to reduce the RAM usage of Composer ?

Thanks.

Have a nice WE. Didier

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed