hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hong Tang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6754) DefaultCodec.createOutputStream() leaks memory
Date Fri, 07 May 2010 08:14:52 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865077#action_12865077
] 

Hong Tang commented on HADOOP-6754:
-----------------------------------

DefaultCodec.createOutputStream(OutputStream out) would be useful when you do not use native
compression library. Otherwise, a direct buffer would be created and leaked. The problem with
direct buffer is that it is not accounted under garbage collection and thus you may exhaust
the memory yet does not trigger gc.

> 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.


Mime
View raw message