Hello, I think there are two bugs in the Splitter component.
Setting ‘streaming = "true"’ breaks error handling: If an exception is thrown in a processor, the exception in the subExchange is copied to the original exchange in MulticastProcessor line 554. In Splitter line 140 the original exchange is copied, including the exception that was thrown while processing the previous exchange. This prevents all subsequent exchanges from being processed successfully. Setting ‘streaming="true" parallelProcessing="true"’ consumes large amounts of heap space for big original messages. E.g. 1024m of heap is not enough to process an 80Mb with 500'000 lines, splitting it line by line. The problem seems to be the ArrayList in MulticastProcessor line 224. It contains a Future<Exchange> object for every token delivered by the java.util.Scanner. The list is only cleared (going out of scope) after all Future objects have been completed. Maybe someone with more Camel experience than me (2 days so far) could verify this before I open JIRA tickets for these issues? Ralf -- View this message in context: http://camel.465427.n5.nabble.com/2-Bugs-in-Splitter-Camel-2-5-0-tp3326727p3326727.html Sent from the Camel - Users mailing list archive at Nabble.com.