A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
Pipelines build fails because of memory limitations on pipelines container | Cloud Platform | Acquia Product Documentation
Cloud Platform
Pipelines build fails because of memory limitations on pipelines container
Pipelines build fails because of memory limitations on pipelines container
Date Published: February 23, 2022
Issue
Pipelines builds that run "composer install" are failing with this, or similar, message in pipelines logs:
Killed composer install -v
You may also see the following, with no detail.
System Failure
Pipelines container running out of memory is one way that pipelines can run into a system failure.
Resolution
Check the "composer.lock" file into your code repository. This will reduce the memory requirements of running "composer install" in this pipelines container.
Running "composer install" without a lock file will use a LOT more memory than running the same with the lock file. This can be demonstrated by running the following tests:
Test memory usage without lock file:
Remove vendor folder (rm -rf vendor)
Clear composer cache (composer clearcache)
Remove composer.lock file (rm composer.lock)
Run an install and report memory consumption (composer install --profile)
In the test outlined above, running "composer install" with the lock file in place used 8.13MB of memory. Running "composer install" without the lock file and forcing composer to generate it used 258.23MB of memory for the same project.