[
https://issues.apache.org/jira/browse/CAMEL-7358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973812#comment-13973812
]
Willem Jiang commented on CAMEL-7358:
-------------------------------------
Current DefaultTraceFormatter already take the inputstream and file object into
consideration. Camel don't read the content of the inputstream and file by
default. The key of the OutOfMemoryError issue is caused by the
DefaultTraceEventMessage construction method call the
MessageHelper#extractBodyAsString.
I will commit a quick fix for it shortly.
> Tracer - Should have options to allow streams or files
> ------------------------------------------------------
>
> Key: CAMEL-7358
> URL: https://issues.apache.org/jira/browse/CAMEL-7358
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.14.0
>
>
> So people can configure if the tracer should load the message body from
> streams or files, or not.
> Currently it will load the content into memory as a String.
> But we need options to turn this off by default for file / streams. And then
> people can turn these option on if they really want that
> See also
> http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-files-tp5749845.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)