Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PHP 5.6 Ubuntu 16.04 test is failing due to out-of-memory error with Composer require #1875
Full console output
In the PHP 5.6 test, it seems that Composer runs out of memory in the last step of a
This is currently breaking the Drupal VM automated test build—for example: https://travis-ci.org/geerlingguy/drupal-vm/jobs/465006817#L2468
It looks like something in the dependency resolver is just eating up all the RAM when building the dependency tree... but only on PHP 5.6. On 7.1 and 7.2 there is no issue.
added a commit
Dec 7, 2018
Just posting here since it worked locally but not with
To test with Composer and PHP 5.x:
So PHP 5.6 uses 823 MB more RAM, or 50% more RAM than PHP 7.2. Yowza.
It was recommended by @zaporylie that I try out https://github.com/zaporylie/composer-drupal-optimizations to see if it saves a bit of RAM/makes for better performance. Testing that again now.
So using that little project: 2057.24 MB --> 540.02 MB on PHP 5.6 (saves 1.5 GB of RAM!!!)
Note that this doesn't help the use case of the first time
So it would be best to get this upstreamed into the drupal project composer template.
Going to test on PHP 7.2 now to see what the reduction is there.
PHP 7.2 - before:
PHP 7.1 - after
1234.48 MB --> 426.64 MB on PHP 7.1 (saves 800 MB of RAM!)