-
Notifications
You must be signed in to change notification settings - Fork 156
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
Potential memory leak after upgrading to 3.0.1 from 2.0.0 #269
Comments
Hey @SimonTheLeg, Looking at the plugin's change log, I see one of the major changes between both versions is the support to render CSV files. Any information related to that feature could help in refining the debugging task. Thanks! 🙌🏻 |
Hi @joanlopez So after the "load-test" mentioned before:
I have noticed that the previous statement is only partially true. So it does return back to normal at first, but after a while exactly the behaviour described in production occurs. With that I think we could give it a chance to extract memory profiles from the dev environment as well while replicating the situation. Could you give me some pointers how to do this and what to post in this issue? |
Hi @SimonTheLeg, Are you using the If so, you probably encountered the issue fixed by this PR. We'll release a new version containing this fix very soon (planned today if nothing goes wrong) but you can also apply it anytime by changing your configuration (through environment variables, see doc above, or through the configuration file). |
@SimonTheLeg Version 3.1.0 is released. I'm closing this issue as it should be fixed by upgrading the plugin but feel free to open it again if this didn't fix it. |
Hi @AgnesToulet. Sounds good! I have tried it with 3.2.0 and the leak did not occur anymore. Thank you for your work! |
What happened:
After upgrading from grafana-image-renderer 2.0.0 to 3.0.1 we are seeing increased memory usage across some of our instances. Additionally the increase happens gradually over time, indicating possibly a memory leak.
Notes on the picture above:
here is a more fine-grained chart of one of the instances
What you expected to happen:
Memory consumption to be roughly the same as before the upgrade
How to reproduce it (as minimally and precisely as possible):
I am having a tough time reproducing this issue in a controlled environment. I have decided to try to explain what we are doing, please let me know if there is any additional info I can fetch to help you out.
First off, we are only doing one call to get a chart. The chart query is not too fancy and takes around 2 seconds to finish. Here is an example using curl
I have already tried to manually put a high-load on the system calling the aforementioned command in a loop, but no indication of memory leaks, the renderer frees the memory after the load again, dropping consumption back to its idle state.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: