You are viewing an old revision of this post, from June 16, 2017 @ 11:54:56. See below for differences between this version and the current revision.

ErrorException: proc_open(): fork failed – Cannot allocate memory in phar

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:56Current Revision
Content
Unchanged: <p>Unchanged: <p>
Unchanged: If you see the errors like thatUnchanged: 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 943Unchanged: 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.&nbsp;Unchanged: 0.0528 763216 2.&nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: It means your server doesn&#39;t have enough memory for composer executes their commands.Unchanged: It means your server doesn&#39;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 commandsUnchanged: 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=1024Unchanged: <code># /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
Unchanged: # /sbin/mkswap /var/swap.1Unchanged: # /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: &nbsp;Unchanged: &nbsp;
 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.

One Response to “ErrorException: proc_open(): fork failed – Cannot allocate memory in phar”

  1. Peter 16/06/2017 at 11:57 am #

    Good article

Leave a Reply