You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Aaron Kimball (JIRA)" <ji...@apache.org> on 2010/05/07 00:23:49 UTC

[jira] Updated: (HADOOP-6754) DefaultCodec.createOutputStream() leaks memory

     [ https://issues.apache.org/jira/browse/HADOOP-6754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Kimball updated HADOOP-6754:
----------------------------------

    Attachment: CompressionBug.java

This short program illustrates the problem. The {{failing()}} method will terminate with an OutOfMemoryException. This occurs quickly with native libs enabled and less quickly (more iterations of the loop) with native libs disabled - but both of these leak.

> DefaultCodec.createOutputStream() leaks memory
> ----------------------------------------------
>
>                 Key: HADOOP-6754
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6754
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>            Reporter: Aaron Kimball
>         Attachments: CompressionBug.java
>
>
> DefaultCodec.createOutputStream() creates a new Compressor instance in each OutputStream. Even if the OutputStream is closed, this leaks memory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.