-
Notifications
You must be signed in to change notification settings - Fork 165
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 allocated by new mapnik.Image() doesn't seem to be freed by GC #950
Comments
I am not sure if this issue affects only image or other types, for example |
@zdila can you try the v4.5.1 release to see if it improves your memory usage? Based on my testing, it should. |
@springmeyer I can reproduce the testcase also in version 4.5.2 (eats 16GB ram in 4 seconds and then starts to swap). |
@zdila - This is not a memory leak but rather design issue/feature
It's more efficient to do something like
and not call |
Thanks for the explanation. To prevent memory leaks we already implemented reusing |
Our server is regularily killed by kernel because it eats all the RAM. It seems to be caused by not freeing unreferenced images created by
new mapnik.Image(...);
Testcase:
The text was updated successfully, but these errors were encountered: