Magento Version : 2.3.0
I tried to change mode developer to production but after run command into CLI, it throw memory limit error as per mention below
"PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes)"
I also tried run following commands but still above error generated and stop command
sudo php -d memory_limit=16G bin/magento deploy:mode:set production
sudo php -d memory_limit=134217728 bin/magento deploy:mode:set production
Please suggest me, how can i fix it ?
Thanks in advance
Add following line in index.php.
ini_set("memory_limit","-1");
Try to increase memory limit at least 4GB on the server.
or try following command:
php -d memory_limit=-1 bin/magento deploy:mode:set production
Hi Vimal,
Thanks for reply,
I already tried your solution but still same issue occurred.
can you please suggest another solution ?
I have same issue. Did you solve your issue? If yes, how? Thanks for your attention.
If u have founded a solution, can you share it with me please.