If you see the errors like that
ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/workspace/MyProject/build/composer/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php on line 943
Call Stack:
0.0523 765208 1. {main}() /var/www/workspace/MyProject/build/composer/composer.phar:0
0.0528 763216 2.
It means your server doesn't have enough memory for composer executes their commands.
You can solve it by upgrading your server or you can create swap memory for your server by using these commands
# /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
# /sbin/mkswap /var/swap.1
# /sbin/swapon /var/swap.1
Hope it is useful for you 🙂
Revisions
- June 16, 2017 @ 11:55:09 [Current Revision] by Sharing Solution
- June 16, 2017 @ 11:55:09 by Sharing Solution
- June 16, 2017 @ 11:54:56 by Sharing Solution
Revision Differences
June 16, 2017 @ 11:54:56 | Current Revision | ||
---|---|---|---|
Content | |||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: If you see the errors like that | Unchanged: If you see the errors like that | ||
Unchanged: </p> | Unchanged: </p> | ||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/ workspace/MyProject/build/ composer/composer.phar/vendor/ symfony/console/ Symfony/Component/ Console/Application.php on line 943 | Unchanged: ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/ workspace/MyProject/build/ composer/composer.phar/vendor/ symfony/console/ Symfony/Component/ Console/Application.php on line 943 | ||
Unchanged: </p> | Unchanged: </p> | ||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: Call Stack:<br /> | Unchanged: Call Stack:<br /> | ||
Unchanged: 0.0523 765208 1. {main}() /var/www/workspace/ MyProject/build/composer/ composer.phar:0<br /> | Unchanged: 0.0523 765208 1. {main}() /var/www/workspace/ MyProject/build/composer/ composer.phar:0<br /> | ||
Unchanged: 0.0528 763216 2. | Unchanged: 0.0528 763216 2. | ||
Unchanged: </p> | Unchanged: </p> | ||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: It means your server doesn't have enough memory for composer executes their commands. | Unchanged: It means your server doesn't have enough memory for composer executes their commands. | ||
Unchanged: </p> | Unchanged: </p> | ||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: You can solve it by upgrading your server or you can create swap memory for your server by using these commands | Unchanged: You can solve it by upgrading your server or you can create swap memory for your server by using these commands | ||
Unchanged: </p> | Unchanged: </p> | ||
Unchanged: <pre> | Unchanged: <pre> | ||
Unchanged: <code># /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | Unchanged: <code># /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | ||
Unchanged: # /sbin/mkswap /var/swap.1 | Unchanged: # /sbin/mkswap /var/swap.1 | ||
Unchanged: # /sbin/swapon /var/swap.1</code></pre> | Unchanged: # /sbin/swapon /var/swap.1</code></pre> | ||
Unchanged: <p> | Unchanged: <p> | ||
Unchanged: | Unchanged: | ||
Added: </p> | |||
Added: <p> | |||
Added: Hope it is useful for you 🙂 | |||
Unchanged: </p> | Unchanged: </p> |
Note: Spaces may be added to comparison text to allow better line wrapping.
Good article