Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Last active October 24, 2018 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdullahbutt/99b075dc2dd3641e60c74593ea95ae7e to your computer and use it in GitHub Desktop.
Save abdullahbutt/99b075dc2dd3641e60c74593ea95ae7e to your computer and use it in GitHub Desktop.
Magento Allowed memory size exhausted error
First ONLY run below 2 commands:
php bin/magento cache:flush
php bin/magento cache:clean
Issue should be resolved.
If isue persists, try below commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento cache:flush
php 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment