[
https://issues.apache.org/jira/browse/FLUME-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779282#comment-13779282
]
Roshan Naik commented on FLUME-2197:
------------------------------------
That would make things worse. The event data would have to be copied over into
the byte array (source -> channel). And again the data needs to be copied from
the byte array into a new event (channel -> sink). That would increase I/O (by
introducing all the copying) and also double the number of event objects being
created.
Storing references to event objects created by sources & reusing the event
objects on the sink side is more efficient.
> 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: Roshan Naik
>
> 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