From 47ce495454b6391aea5516ed01cb86ae239c3592 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 5 Mar 2018 09:38:22 +0100 Subject: [PATCH] document the COMPOSER_MEMORY_LIMIT env var as implemented in 882b82d542b45435bae1d95b33e225427950c59c --- doc/articles/troubleshooting.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index 80e639a63..3be93c52f 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -140,6 +140,12 @@ Debian-like systems): memory_limit = -1 ``` +Composer also respects a memory limit defined by the `COMPOSER_MEMORY_LIMIT` environment variable: + +```sh +COMPOSER_MEMORY_LIMIT=-1 composer.phar <...> +``` + Or, you can increase the limit with a command-line argument: ```sh