Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 82038 invoked from network); 7 Jan 2011 16:46:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 16:46:10 -0000 Received: (qmail 25746 invoked by uid 500); 7 Jan 2011 16:46:10 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 25698 invoked by uid 500); 7 Jan 2011 16:46:10 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 25684 invoked by uid 500); 7 Jan 2011 16:46:10 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 25672 invoked by uid 99); 7 Jan 2011 16:46:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 16:46:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 16:46:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p07GjkHK016869 for ; Fri, 7 Jan 2011 16:45:46 GMT Message-ID: <16873380.214871294418746643.JavaMail.jira@thor> Date: Fri, 7 Jan 2011 11:45:46 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-3497) Splitter Component: Setting 'streaming="true" parallelProcessing="true"' consumes large amounts > of heap space for big original messages In-Reply-To: <4426538.156431294219306379.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978855#action_12978855 ] Claus Ibsen commented on CAMEL-3497: ------------------------------------ trunk on Camel 2.6 in rev 1056380: I have reduced memory consumption used, which should allow it to be a bit better. But the splitter still uses a bit additional memory due the splitting is based on a copy of the input message for each splitted message. Ralf you are welcome to test again and see if you can process a bit more than previously. > Splitter Component: Setting 'streaming="true" parallelProcessing="true"' consumes large amounts > of heap space for big original messages > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-3497 > URL: https://issues.apache.org/jira/browse/CAMEL-3497 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.5.0 > Reporter: Ralf Steppacher > Assignee: Claus Ibsen > Fix For: 3.0.0 > > > 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 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.