magento-memory-issue
Category

PHP Fatal error:Allowed memory size of 134217728 bytes exhausted

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in vendor/magento/module-config/Model/Config/Structure/Mapper/Dependencies.php on line 77


Sometimes you face issues while running the Magento 2 command, and the solution to this issue is you just need to eliminate the memory limit while running Magento command.

So instead of running command like

php bin/magento your_command

do it like this

php -d memory_limit=-1 bin/magento your_command

Happy coding

Leave a Reply

Your email address will not be published. Required fields are marked *