I have getting this error in magento 2.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried
to allocate 28672 bytes) in
/home/www/public_html/website.com/vendor/composer/composer/src/Composer/Package/Dumper/ArrayDumper.php
on line 89
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 425984 bytes) in
/home/www/public_html/website.com/vendor/composer/composer/src/Composer/Json/JsonFile.php
on line 93
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 425984 bytes) in
/home/www/public_html/website.com/vendor/composer/composer/src/Composer/Json/JsonFile.php
on line 93
Please help me to solve this issue. thanks in advance.
Best Answer
I was facing the same issue but was able to resolve.
Example:
/opt/lampp/bin/php
: My PHP path./opt/lampp/htdocs/magento/enterprise/bin/magento
: My Magento CLI pathmemory_limit=2G
: Memory limit set to 2G, you can update to it as your server limits.