0

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

PHP Fatal error: Out of memory (allocated 1218445312) (tried to allocate 134217728 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 90

While installing data migration tool using composer.

I have set the memory_limit=-1 in php.ini file.

asked Aug 12, 2020 at 7:49
9
  • If you're using command line try to put before the command memory_limit=-1 or COMPOSER_MEMORY_LIMIT=-1 ex: COMPOSER_MEMORY_LIMIT=1 composer update Commented Aug 12, 2020 at 10:54
  • @RuiSilva I did it but the same issue is arising. Commented Aug 12, 2020 at 13:06
  • Then, do your machine have enough resources by itself? Commented Aug 12, 2020 at 16:41
  • @RuiSilva How to check resources? Commented Aug 13, 2020 at 7:01
  • I don't know how to do that in command line tbh, I usually use massiveGRID e can easily check, but if you have a provider you should have the specs somewhere or can ask him, you can even expose this situation to him and maybe try to increase the limits on the provider side even if just for testing Commented Aug 13, 2020 at 9:27

1 Answer 1

0

faced same problem the solution is: 1)download the VC15 x64 Thread Safe (2020-Oct-01 13:06:05) zip file for php 7.2. 2)make a folder called php72 on dekstop. 3)copy all files from php zip folder and paste into php72 folder. 4)rename php.ini-development to php.ini. 5)enable all extensions in php.ini file. 6) save php.ini and run this command from cli.

"C:\Users\youruser\Desktop\php72\php.exe" -d memory_limit=-1 "C:/ProgramData/ComposerSetup/bin/composer.phar" update

Thanks.

answered Dec 7, 2020 at 12:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.