Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 06E8AD9ED for ; Tue, 15 Jan 2013 02:59:28 +0000 (UTC) Received: (qmail 44799 invoked by uid 500); 15 Jan 2013 02:59:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 44643 invoked by uid 500); 15 Jan 2013 02:59:27 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 44623 invoked by uid 99); 15 Jan 2013 02:59:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 02:59:26 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 02:59:21 +0000 Received: by mail-ie0-f175.google.com with SMTP id qd14so6294955ieb.6 for ; Mon, 14 Jan 2013 18:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=bUInduz09jtbPRmmLWVPL0Ei3srAf19sN6ztaoS/DFI=; b=BMQnQrnE1Hyd80tmnaDpSeMs9kn/4QQZsN32E5YxwYOgGrxGCxjPc0fyCsFmorsteL G+ZnUrsvCAWymHmwLvbtEuPP39zWnC5Zde4Wx/jRiextc46p1G3GQqjHqQfsfW80Iiw0 I5sKeoyNg1+gg948C7ud5eBzrGZYsQD+UdtOkVup3Vbo4AkjiTn1u2IPqzGTqpFH5jDi Kt8La3r26bgrjBuIQmhFxt2whCFrdKyFb8dJZ+TJOOt2PDHoWHhnXWzx07QTk52YMp+V nyLS5AIN3xqMc6159a3k3BL5JBoJi6XQBp26q6dvnwIxPDs4/SVG8qqd++e32DqBJ1cj 8+Mw== MIME-Version: 1.0 X-Received: by 10.50.216.231 with SMTP id ot7mr588931igc.2.1358218740027; Mon, 14 Jan 2013 18:59:00 -0800 (PST) Received: by 10.50.41.100 with HTTP; Mon, 14 Jan 2013 18:58:59 -0800 (PST) In-Reply-To: <1358184237180-4661718.post@n4.nabble.com> References: <1358184237180-4661718.post@n4.nabble.com> Date: Mon, 14 Jan 2013 19:58:59 -0700 Message-ID: Subject: Re: persistent message delivery to queue From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=14dae93406cd86cfef04d34af184 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93406cd86cfef04d34af184 Content-Type: text/plain; charset=ISO-8859-1 my best advice is to profile activemq a little more. figure out where the bottleneck is if you're not cpu bound. what does you box look like (specs?) there are no magic settings that make it "faster" :) On Mon, Jan 14, 2013 at 10:23 AM, jainmanglesh wrote: > Hi, > > I want all the message from producer to send to queue with persistence, by > that I mean : > 1. the message must not be lost during transition (from producer to queue, > like if server crashes during the transition) > 2. the message should be there on the server, if server crashes after > messaged delivered to queue from producer. > > I am using persistent delivery mode (which is default anyway). however in > this ack would be sent to producer for each and every message delivered > (and > stored) in activemq local store (kahadb). I cannot afford to use async mode > (which may be 10 times faster) as if I use async mode and if server crashes > during the message delivery then that message will not be stored (I checked > that and found message lost during the transition were not there on the > queue) and hence message will be lost. > > Is there anything I can do to improve performance of delivery of msg from > producer to Queue on server (as of now I see 60K message/minutes are > delivered). > > I thought if there is anything like batch acknowledgement, so instead of > ack > for each message, i can configure to ack for every 1000 (or n number) > messages and if any msg from that batch is not delivered then the whole > batch will still be with producer (for automatic retry later). > > I tried increasing couple of setting like memoryUsage (from systemUsage), > journalFileLength but didnt get any improvement in performance. > > any help. > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/persistent-message-delivery-to-queue-tp4661718.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --14dae93406cd86cfef04d34af184--