Jump to content

Magento 2.1.6 Cron Jobs Failing Due To Php Memory Limit


huabao

Recommended Posts

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

Link to comment
Share on other sites

We've increased the limits before, but 756MB :blink: ...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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...