0

I am getting error while running the cli commands, I increased the memory_limit to 5G enter image description here

  • You can use php -d memory_limit=2G bin/magento setup:upgrade – Pawan Feb 9 at 3:45
  • if you increase memory, please check phpinfo, it is reflecting or not. – Pawan Feb 9 at 3:55
  • It is reflecting in phpinfo – vinaysirige Feb 9 at 3:58
  • OK, did you tried command i shared ? – Pawan Feb 9 at 4:29
0

I am facing same issues and I am tried same commands

php -d memory_limit=4G bin/magento setup:upgrade

php -d memory_limit=4G bin/magento setup:static-content:deploy

php -d memory_limit=4G bin/magento setup:di:compile

php -d memory_limit=4G bin/magento cache:flush

php -d memory_limit=4G bin/magento cache:clean

//To run command forcefully

php -f bin/magento

//To run command with memory limit 4G

php -d memory_limit=4G bin/magento

//To run command with max memory limit

php -d memory_limit=-1 bin/magento

Thanks.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.