I tried to deploy static content of magento 2 but php memory limit exceed error pops up every time. Even my cron jobs are not running it giving me the same error in cron.log files.
Asked
Active
Viewed 1,522 times
1 Answers
2
You can use php -d memory_limit=2G in every command you run as a temporary solution to your problem but for permanent solution you must go for change in your php.ini file max_memory_limit to somewhat according to your requirement for Magento it must be minimum 765MB but you can give 2G for better functionality.

Manish Kumar
- 208
- 1
- 8
-
Welcome, No problem – Manish Kumar Feb 05 '19 at 13:25
-
1Can we also use this in cron jobs? – Rohit Apr 13 '19 at 11:15
-
Yes, We can also use this in cron jobs also – Manish Kumar Apr 13 '19 at 11:16