Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

LzmaOutputStream leaks threads #6

Open
cowtowncoder opened this issue Jul 24, 2011 · 2 comments
Open

LzmaOutputStream leaks threads #6

cowtowncoder opened this issue Jul 24, 2011 · 2 comments

Comments

@cowtowncoder
Copy link
Contributor

When trying to performance test compression part, Hprof dump lists huge number of threads; it looks as if threads were leaked somehow. Since I am closing LzmaOutputStream there seems to be little I can do to prevent this, so it looks like a bug.
(as far as I understand, threads are needed to work around impedance of underlying implementation which does not make it easy to model Java Input/OutputStreams; ideally this shouldn't be needed obviously).

@jponge
Copy link
Owner

jponge commented Jan 7, 2012

Does your code properly close streams? Threads (should) terminate on close().

@cowtowncoder
Copy link
Contributor Author

Test code definitely should have done that, but it has been a while. If that didnt occur, I would consider it a client problem not bug. So as far as I know this is not due to forgetting to close streams.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants