Page MenuHomeDevCentral

Increase memory limit for Jenkins PHP nodes
Closed, ResolvedPublic


On zenerre, built with rDJENKINSSLAVES:

$ php -r "echo ini_get('memory_limit').PHP_EOL;"

That triggers a Composer out of memory issue at

[exec] Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///opt/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220

(rGROVE dependencies will probably be easier to resolve if we upgrade Laravel)

On WindRiver, I had the same issue but then were able to run composer install with 2G memory limit.

Event Timeline

Let's try in the container by the way:

$ su app
$ cd ~/workspace/test-auth-grove-phab
$ php -d memory_limit=2G /opt/composer.phar install

Started installation at 1.7 GiB, bumped to 1.8 GiB, decreased to 211 MiB afterwards.

$ docker stats
CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
5f021cd71778        jenkins_ci          0.52%               2.087GiB / 19.44GiB   10.73%              19.8MB / 102MB      1.09GB / 7.24MB     73
8e0f47571a64        zenerre             48.73%              1.794GiB / 19.44GiB   9.23%               94.5MB / 8.4MB      615MB / 68.7MB      30

So 2G looks good.