0

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

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

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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