huabao Posted May 24, 2017 Share Posted May 24, 2017 Hello,I have an instance of Magento 2.1.6 installed and running on the server. In my Magento Admin screen I'm getting the following error (which manifests on the website as updates not appearing). One or more indexers are invalid. Make sure your Magento cron job is running. Tracing the error, I've found the following message in my error logs. [2017-05-23 05:26:02] setup-cron.ERROR: Your current PHP memory limit is 128M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit your php.ini file to increase memory_limit. (The command php --ini tells you where it is located.) After that, restart your web server and try again. [] [] This looks like the cause of the issue. Any ideas how to fix this?I've read a few threads on the forums that say that in order to increase the PHP memory limit, moderators will need to change it on request.Any help would be much appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
wolstech Posted May 24, 2017 Share Posted May 24, 2017 We've increased the limits before, but 756MB ...you'd probably get suspended for load every time that cron ran if it actually uses that much. I would recommend finding different software if you can. Magento has been repeatedly shown to be too bloated to run properly here. Quote Link to comment Share on other sites More sharing options...
Krydos Posted May 24, 2017 Share Posted May 24, 2017 too bloated to run properly here.Too bloated to run anywhere tbh. @huabao do you have a lot of plugins or something? The magneto website says 256 MB which is a lot more reasonable. Quote Link to comment Share on other sites More sharing options...
huabao Posted May 24, 2017 Author Share Posted May 24, 2017 756MB does seem excessive. That's quite unfortunate cause Magento does serve a good purpose for us. @Krydos, I'm not running any plugins. This error appears immediately after a fresh install. 256MB definitely seems more reasonable, but I think that might only apply to v1.6. Where did you see this requirement?Looking at Magento 2 requirements says 2GB... that's pretty high. I might ask Magento support, but I'll want to troubleshoot myself first. I also read that there is no way to access the terminal in case I want to trigger re-indexing manually, is that correct? Thanks Quote Link to comment Share on other sites More sharing options...
Krydos Posted May 24, 2017 Share Posted May 24, 2017 It might have been an older version I was looking at. I just made a quick google search and that was the first number I saw, but looking at magento's own website on their latest version they do suggest setting the php memory to 2gb. Even if your server had 256gb of memory or whatever the ridiculous amount of time it would take to load and unload 2gb of memory data for each php process would be so slow. This magento thing is just too funny. I can't even take them seriously. I think the term "bloated" might be a ridiculous understatement in this case. On a less comical note, what exactly do you need magento for that cannot be done quicker and easier with literally any other piece of code? NSFW (I warned you...) I recommend anyone who is sick of Magento to read this http://alternativeto.net/software/magento/ Quote Link to comment Share on other sites More sharing options...
huabao Posted May 24, 2017 Author Share Posted May 24, 2017 @Krydos, haha I think you've convinced me. Maybe I don't need something that heavy weight, at least to start. I'll have to investigate other options (I'm going to try Prestashop, wish me luck). Thanks Quote Link to comment Share on other sites More sharing options...
Krydos Posted May 24, 2017 Share Posted May 24, 2017 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.