-
Notifications
You must be signed in to change notification settings - Fork 70
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 in broker module webui #128
Comments
I met the same problem this morning ! I do confirm that the master branch WebUI seems to have heavy memory leaks ! Still on survey on my production ... more than 19Gb memory in few minutes for 20k services. I will make a test with BS3 branch on the same environment to check. |
As far as i can tell is that the notificationways is duplicated between each shinken reload. |
ah ! that would explain why I don't always (or at all) succeed to reproduce such issues : because often I use a relatively simple config, if in which there is no notificationways then I could simply don't hit the "bug".
So thanks for the info/tip when I'll retry an investigation with notificationways enabled :) |
i can now tell that there is something wrong when processing contacts and notificationways in regenerator.py. We only clear hosts and services when we reload the configuration or when one scheduler has down and the spare one takes over the configuration, however, we lost the contacts and notificationways. we initial new notificationways wrongly after the The solution to this problem is very simple, we can just add and flag, indicating whether the notificationway is not, and then initialize(the first time with a
In order to further make the contacts and notificationways update with each I think i can make a PR later. |
BS3 branch do not suffer from memory leaks ... I close this issue. |
We use WebUI as the frontend of Shinken, however, after about a month later, we find that the memory of WebUI is holding almost 30G memory.
We do not restart Broker daemon meantime. We only do some reload of arbiter if the configuration has changed. So, any threads about how this comes?
I have issued the same question in shinken 1597.
The text was updated successfully, but these errors were encountered: