-1

Already updated the memory_limit on php.ini by about 1G and doing also php -d memory_limit=1G composer.phar update and I can see the allowed memory is bigger than the displayed memory attempt 1610612736 where composer says tried to allocate 4096 bytes any help, ideas?

enter image description here

Juliver Galleto
  • 8,831
  • 27
  • 86
  • 164
  • Have you checked whether your system provides more memory? Additionally, what have you tried to resolve this? This looks like either a problem of Composer being too old (there were a lot of fixes about memory leaks), or a problem of too loose version constraints – Nico Haase Jul 10 '20 at 05:34
  • @NicoHaase running on windows 10, i7 10th, 16gb ddr5 (65% available), just to make sure, did uninstall the current composer and downloaded and installed a fresh one from the composer website, same error unfortunately – Juliver Galleto Jul 10 '20 at 06:29
  • And what about checking the version constraints? Can you share your `composer.json` such that others could inspect it for possible problems? – Nico Haase Jul 10 '20 at 07:24

2 Answers2

0

Try using composer diagnose.

The diagnose command performs automated checks for many common problems. This can help you spot find potential bottlenecks/bugs if there are any.

https://getcomposer.org/doc/03-cli.md#diagnose

Amit Merchant
  • 1,045
  • 6
  • 21
0

From Composer documentation:

Note: Composer internally increases the memory_limit to 1.5G.

https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors

Have this a go:

php -d memory_limit=-1 composer.phar update

If this does not work there are more solutions here:

Composer Update failed -- out of memory

kopz
  • 738
  • 11
  • 20