Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADA8718BC9 for ; Fri, 18 Sep 2015 06:56:51 +0000 (UTC) Received: (qmail 20061 invoked by uid 500); 18 Sep 2015 06:56:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 20015 invoked by uid 500); 18 Sep 2015 06:56:50 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 83682 invoked by uid 99); 17 Sep 2015 15:30:38 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.737 X-Spam-Level: *** X-Spam-Status: No, score=3.737 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Date: Thu, 17 Sep 2015 08:30:29 -0700 (MST) From: ywang9009 To: users@camel.apache.org Message-ID: <1442503829387-5771602.post@n5.nabble.com> In-Reply-To: References: <1375338444211-5736621.post@n5.nabble.com> Subject: Re: Camel Unmarshal throwing heap space exception MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Claus, could you elaborate on the splitter/streaming approach? I am running into the same issue - gzip unmarshaling is done in memory and I am getting this error when processing a large file: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2271)[:1.7.0_45] at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:178)[:1.7.0_45] at org.apache.camel.impl.GzipDataFormat.unmarshal(GzipDataFormat.java:52)[142:org.apache.camel.camel-core:2.12.0.redhat-610379] Here is my blueprint: ${file:name} regex ".*.gz$" I am using jboss-fuse-6.1.0.redhat-379 Thank you -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Unmarshal-throwing-heap-space-exception-tp5736621p5771602.html Sent from the Camel - Users mailing list archive at Nabble.com.