You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Roshan Naik (JIRA)" <ji...@apache.org> on 2013/09/21 04:38:51 UTC

[jira] [Commented] (FLUME-2197) Memory Channel has GC issues

    [ https://issues.apache.org/jira/browse/FLUME-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773694#comment-13773694 ] 

Roshan Naik commented on FLUME-2197:
------------------------------------

I noticed this issue when profiling the SpillableChannel.

LinkedBlockingDeque is a bit of an overkill in two respects:

- being a linked list it causes excessive gc
- unecessary locking. Access to it synchronized externally anyways. 

I used ArrayDeque<Event> instead in spillable channel.
                
> Memory Channel has GC issues
> ----------------------------
>
>                 Key: FLUME-2197
>                 URL: https://issues.apache.org/jira/browse/FLUME-2197
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Hari Shreedharan
>            Assignee: Hari Shreedharan
>
> Due to the fact that we use a LinkedBlockingDeque as the backing queue for the MemoryChannel, we end up hitting GC issues more often than we should.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira