Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AbuHenaM's avatar

composer PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

When I try to update or add a new package via composer, I get his error-

composer PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

Any solution for that?

1 like
6 replies
neilstee's avatar

You can bypass this using COMPOSER_MEMORY_LIMIT=-1:

COMPOSER_MEMORY_LIMIT=-1 composer require vendor/package

Or change in your php.ini memory_limit=-1

5 likes

Please or to participate in this conversation.