Fix memory leak on messages consuming#37
Fix memory leak on messages consuming#37abc94e4f31 wants to merge 1 commit intoMeltwaterArchive:masterfrom
Conversation
|
@abc94e4f31 thanks for the PRs! @stiangrindvoll you wanna have a look at this and #38 |
|
@abc94e4f31 I can't find any bug reports on |
I have made a simple gzip-like program to check is there any memory leak in 'compress/gzip/'. The program works correctly with constant memory consumption. It looks like the lower compression level has a side effect on memory usage, I guess, there is an issue somewhere in the getWriters function, perhaps in the tarball buffer. Also, the memory consumption of |
when best compression enabled it uses about 500Mb memory (Maximum resident set size (kbytes): 497300)
with fix: