Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Problem Fatal error: Allowed memory size #3

Closed
abipit opened this issue Dec 22, 2016 · 4 comments
Closed

Problem Fatal error: Allowed memory size #3

abipit opened this issue Dec 22, 2016 · 4 comments

Comments

@abipit
Copy link

abipit commented Dec 22, 2016

Hello,

Since the last release, it's impossible to install. We have theses errors :

PHP Fatal error:  Allowed memory size of 2684354560 bytes exhausted (tried to allocate 64 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 76
Fatal error: Allowed memory size of 2684354560 bytes exhausted (tried to allocate 64 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 76

Fatal error: Allowed memory size of 2684354560 bytes exhausted (tried to allocate 64 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60
PHP Fatal error:  Allowed memory size of 2684354560 bytes exhausted (tried to allocate 64 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60

If we upgraded memory_limit in /etc/php/5.6/cli/php.ini & /etc/php/5.6/fpm/php.ini, sames errors :

Fatal error: Allowed memory size of 2684354560 bytes exhausted (tried to allocate 72 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60
PHP Fatal error:  Allowed memory size of 2684354560 bytes exhausted (tried to allocate 72 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60
Fatal error: Allowed memory size of 2684354560 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60
PHP Fatal error:  Allowed memory size of 2684354560 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60

PHP Fatal error:  Allowed memory size of 3221225472 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126
Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126
Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 205
PHP Fatal error:  Allowed memory size of 3221225472 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 205

Do you have an idea ?
Thank you

@sergeycherepanov
Copy link
Member

sergeycherepanov commented Dec 23, 2016

Hi @abipit !

You are used my image or build your own?

I think it's can be related to composer dependency update. Running of composer update or composer install without lock file for ORO products required more than 4G ram.

Please provide more information so that I can understand how to reproduce error.

@abipit
Copy link
Author

abipit commented Dec 23, 2016

Hi @sergeycherepanov,

Yes I use directly :
djocker/orodata
djocker/oromono

When I ran install, I had about 3G ram free, I will try with more.
Thanks

@sergeycherepanov
Copy link
Member

Hi @abipit

I checked it on my local machine with auto install composer config, and all works fine. Can you explain what you do?

I think needed to implement PHP_MEMORY_LIMIT env variable. It's allow to you to define limit when you run container.

@abipit
Copy link
Author

abipit commented Jan 3, 2017

Finally, we add "-d" argument and "composer.phar self-update" before the command and it's ok. Thank you

@abipit abipit closed this as completed Jan 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants