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
Memory leak on custom execution module scheduled every minute #32349
Comments
@arthurlogilab, thanks for reporting. Does the system you are reporting do anything else that might compound/complicate the leaking memory? |
@jfindlay yes, I can try to isolate this in a VM, but do you have any tips to debug this on this setup (which has other things going on) ? |
@arthurlogilab, I'm not very experienced with issues like this. You may want to ask @cachedout. |
Likely fixed by #32373 |
Since I'm reasonably certain that this is fixed, I am going to close this. If it turns out not to be the case, please leave a comment and we'll re-open it. Thanks. |
Thanks @cachedout |
I seem to have hit this memory leak too (with a schedule running a custom execution module every 10 seconds) on salt 2015.8.7. I tried applying only the patch for #32373 to my installed 2015.8.7 minion, but it doesn't seem to have fixed the problem, so there must be something else going on... |
@tserong Does it happens also on 2015.8.10? |
2015.8.10 works fine (no leak AFAICT) |
Then only question what PR already fixed that. |
Yeah. I'll spend some time with |
#32474 seems to fix it for me, when applied on top of 2015.8.7. That means the earliest tagged version that's got the fix is v2015.8.9. |
Description of Issue/Question
I get some "Exception [Errno 12] Cannot allocate memory occurred in scheduled job" errors in the log (reported to sentry).
The munin graph below shows some clear patterns of a memory leak.
Am willing to spend some time debugging this if needed (otherwise a @daily crontab restart of salt-minion probably will do the trick...)
Setup
Steps to Reproduce Issue
It has about 10 of schedules such as this one :
The master returner is the one published here : #12653 (comment)
The custom module is as follows (converted network.ping to a dict/json output) :
Versions Report
The text was updated successfully, but these errors were encountered: