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 1CC3D19E72 for ; Fri, 15 Apr 2016 15:12:51 +0000 (UTC) Received: (qmail 11290 invoked by uid 500); 15 Apr 2016 15:12:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 11235 invoked by uid 500); 15 Apr 2016 15:12: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 Received: (qmail 11223 invoked by uid 99); 15 Apr 2016 15:12:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2016 15:12:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D32C71A003B for ; Fri, 15 Apr 2016 15:12:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.812 X-Spam-Level: *** X-Spam-Status: No, score=3.812 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mediadriver-com.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IKDPX-Nr1SHA for ; Fri, 15 Apr 2016 15:12:47 +0000 (UTC) Received: from mail-qg0-f69.google.com (mail-qg0-f69.google.com [209.85.192.69]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 9D0D35F343 for ; Fri, 15 Apr 2016 15:12:47 +0000 (UTC) Received: by mail-qg0-f69.google.com with SMTP id j35so138359628qge.1 for ; Fri, 15 Apr 2016 08:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediadriver-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=phO9gkIrqbLB05+N49F/giVbF9FpUQqI9Fx+cyoJ0WQ=; b=NAISanjsj+lGdOc6W75PJ0zdqr5+wjkB025l4dEftD8YLlTqmaZcDJHUxiiiOdn8+y skuWu4El2inWGdTZu5Gm3RD3iGKw3xmETEBKs/kSKkn5oRwk/BsXd5uBb9TsbOKiFmPQ yEv/H8cTuXUmjk7A+i9YJT2/gceRKp0NmgTEDX0fwXtoezU0Im1sYOtr9b/8cQh748FW N49WCtqLR24sBC/XBCLhEcjRtiJhZjBwgqrOA1+e8QjbSt2uJ3Jz0Bo1LhItCLs8ICc4 fMUekbmplwQtlqnoRjetyEFJ9EEzuiq7cIjck1sPZgDDdKdOdVjyKU8Mqc4S7LV7djBI IcbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=phO9gkIrqbLB05+N49F/giVbF9FpUQqI9Fx+cyoJ0WQ=; b=AKz+DTZyO8cUqub6wW5BzIatvBcqLhG7XCzybihszeSvRsV6i4SOKB5rT1HzBQKjGa kjP18Cc8OD1QJzubQm9IixwUXtjyHwPN4qKCw9+2EcvwKcXjloHH7qRnuNqPLSEgNX5V RFNjnHWTALSXjlPiFdyNG/jzC9vOBema32Pv0gyngkmJq+gXUwVmSAu6C6dHvLXpqVEu eg+HtGNDpzIsfyBx/J2PaEAIR79IuK1pAzxiRLS6BFa+N6A6nO8RkmiNgDWYICLGjmPo Lv3k/XKLQrjd1wPMg5qml1qom9mGSv+cr8q6DHqP/+6D+0Nhl8a8iPgHJiZkuaPjfg6K AQEQ== X-Gm-Message-State: AOPr4FXm1+5hC3jBE3CufojG1FxmdyIX2a4wY6fhJ9FlSdREJWHwHxc7FRxOaJtR8R9cDXn3UNflhngrVbIF8NP0 MIME-Version: 1.0 X-Received: by 10.140.23.105 with SMTP id 96mr25505545qgo.7.1460733166977; Fri, 15 Apr 2016 08:12:46 -0700 (PDT) Received: by 10.55.117.3 with HTTP; Fri, 15 Apr 2016 08:12:46 -0700 (PDT) In-Reply-To: <1460732314764-5781179.post@n5.nabble.com> References: <1459409155533-5780132.post@n5.nabble.com> <1459436310865-5780169.post@n5.nabble.com> <1460538377069-5780965.post@n5.nabble.com> <1460550833912-5781003.post@n5.nabble.com> <8bbbcac692464c578bf6e06aff3a5280@derote13de02.global.corp.sap> <1460561153030-5781014.post@n5.nabble.com> <1460725145142-5781168.post@n5.nabble.com> <5710EBD5.4070600@j-b-s.de> <1460732314764-5781179.post@n5.nabble.com> Date: Fri, 15 Apr 2016 10:12:46 -0500 Message-ID: Subject: Re: Best Strategy to process a large number of rows in File From: Brad Johnson To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a11c15716879d6005308771a9 --001a11c15716879d6005308771a9 Content-Type: text/plain; charset=UTF-8 I suspect the biggest problem you may be having here is that the file isn't truly streaming but getting slurped into memory as a whole. I don't know that for certain but that test of two queues should show you that. That might be throwaway code or it might be the basis for a next implementation. But it will at least let you see what you're dealing with. I wouldn't go too far past just reading/streaming the file in and passing it on to the next queue so you can verify that you are getting individual data records. On Fri, Apr 15, 2016 at 9:58 AM, Michele wrote: > How big is that object on the queue? > As optimization, I changed generic LinkedHashMap in a bean SerialNumber > that > has this properties > > public class SerialNumber implements Serializable { > > private static final long serialVersionUID = -9067015746823050409L; > > private Date arg1; > private Date arg2; > private String arg3; > private String arg4; > > // getter setter > } > > Is it only a single line of data? Yes > > I try with seda:processAndStoreInQueue?concurrentConsumers=30 but the > result > is the same. > I attached scrennshots with memory usage and live threads. > memory-usage.png > > live-threads.png > > > I will try decompose the problem into a number of separate seda:queues to > verify performance and memory usage and let you know. > > Thanks a lot again for your support. > > Best Regards > > Michele > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856p5781179.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --001a11c15716879d6005308771a9--