[
https://issues.apache.org/jira/browse/CAMEL-16034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277793#comment-17277793
]
Claus Ibsen commented on CAMEL-16034:
-------------------------------------
MDC is not recommended to use in a reactive world
> MDC Logging causing OutOfMemory with large split
> ------------------------------------------------
>
> Key: CAMEL-16034
> URL: https://issues.apache.org/jira/browse/CAMEL-16034
> Project: Camel
> Issue Type: Bug
> Components: camel-core-engine
> Affects Versions: 3.7.0
> Reporter: Benjamin Graf
> Priority: Minor
> Attachments: Main.java, java_pid13864.001, java_pid13864.002,
> java_pid13864.003, java_pid13864.004, java_pid13864.crc
>
>
> If using MDC logging and splitting a large amount of data it could cause
> OutOfMemory because internal memory consumption for MDC is growing enormous.
> DefaultReactiveExecutor.Worker.back in HeapDump seems to be correlated with
> MDCCallback
> See test case [^Main.java] run with -Xmx1G -XX:+HeapDumpOnOutOfMemoryError
--
This message was sent by Atlassian Jira
(v8.3.4#803005)