[ 
https://issues.apache.org/activemq/browse/CAMEL-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50164#action_50164
 ] 

Claus Ibsen commented on CAMEL-1413:
------------------------------------

Maybe there are some cache algorithms for eg having a memory buffer of eg. 5mb 
and then if overrun it can spool to disk.

So if you are under 5mb the 4kb streams can still be cached in memory.

> Cache the big message into the file instead of using memory
> -----------------------------------------------------------
>
>                 Key: CAMEL-1413
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1413
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.6.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>
> If we always caching the Stream message in the memory, we will get an 
> OutOfMemoryError  if we are caching the big size streams.
> In CXF , we will cache the big stream into a file instead of using the memory 
> if the stream is big than 4K to get around this kind of issue.
> I think we need to implement a same stream caching in Camel now.

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

Reply via email to