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

Graylog server does not properly close zlib/gzip streams. #1857

Closed
StephanErb opened this Issue Feb 25, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@StephanErb

StephanErb commented Feb 25, 2016

As detailed in this article, InflaterInputStream and GZIPInputStream allocate native memory that is not freed until close() or when the finalizer runs.

It is therefore best to close() these streams explicitly. This is currently not the case in the Graylog code base for decompressZlib and decompressGzip.

It can therefore be the case, that the graylog server uses more memory than the configured heap size. This is a potential risk for production installation as the server might be killed due to out of memory conditions.

@joschi joschi self-assigned this Feb 25, 2016

joschi added a commit that referenced this issue Feb 25, 2016

@joschi

This comment has been minimized.

Contributor

joschi commented Feb 25, 2016

@StephanErb Good catch. Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment