-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core_clean_cache cronjob never stops until it is killed #41
Comments
That's very strange, but not much info to go on.. Perhaps you could run strace on the running process to see what it is doing at a system call level? |
@colinmollenhour, you're totally right, sorry. I debugged now a lot deeper. Most of the entries only take about 0.0006 seconds to finish. So I debugged further into
In the problematic cases, the step between 1.6 and 1.7 takes bout 0.4 seconds, the one between 1.7 and 1.9 another 0.6 seconds. Debugged that further and found the following bottlenecks:
Until now, I was not table to find out, how a "bad" entry could be identified before. That is all I know for now. Do you have any good idea how to approach this issue further, or any idea what might be the reason for these "bad" entries? |
15GB cache!? What are you storing in the cache to cause it to be so big? |
We have the issue, that the cronjob
core_clean_cache
, which runs by default every night, never runs through and is always running until it is killed, as soon as the cache has a minimal size.It can be "fixed" by running the cronjob every hour. Then the cache is so small, that it still works , but if you run it as default once a night, the issue occurs.
We already debugged this locally and found out, that the removal of specific cache entries takes more than a second, each.
So when the cronjob goes through the cache items, he should delete, some of them are easily removed within a very short time but some take that long, and we did not really find out, why.
We're using Magento with all Mage One patches applied and the newest version of this module.
The issue happens since we switched to PHP 8.1.
Does anyone encounter the same and has any ideas what we could try to fix it?
The text was updated successfully, but these errors were encountered: