Answer the question
In order to leave comments, you need to log in
Windows 7 composer how to bypass Out of memory?
Good evening everyone!
I understand that the topic, to put it mildly, is not new. However, for the third day I can not find a solution for my configuration:
Windows7 x64, php 7.2.5 (xampp package), composer 1.10.21.
composer update returns:
PHP Fatal error: Out of memory (allocated 903872512) (tried to allocate 4096 by
tes) in phar://C:/ProgramData/ComposerSetup/bin/composer.p...
dencyResolver/RuleSetGenerator.php on line 129
I tried:
php -d memory_limit=-1
change memory_limit=3G in php.ini
found a line in composer.phar with 1.5Gb allocation condition, tried to change the code, messed up composer and reinstalled it
The problem is that there seems to be no difference in setting limits (except for those cases when the limit is set to less than 1GB), the command completes its execution with approximately 1GB of allocated memory and that's it. On the machine itself, there is 16GB of RAM, which should be enough anyway (we tried to repeat this on the hosting and experimentally managed to do this only with 3.5-4GB of memory allocated). Is there any way to defeat the problem on Win7? Perhaps through swap files, perhaps through changing the php version? Or some other additional settings?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question