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 D08DF786A for ; Thu, 20 Oct 2011 08:14:30 +0000 (UTC) Received: (qmail 33032 invoked by uid 500); 20 Oct 2011 08:14:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 32935 invoked by uid 500); 20 Oct 2011 08:14:29 -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 32927 invoked by uid 99); 20 Oct 2011 08:14:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 08:14:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of suonayi2006@163.com designates 220.181.13.26 as permitted sender) Received: from [220.181.13.26] (HELO m13-26.163.com) (220.181.13.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 08:14:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:In-Reply-To: References:Subject:MIME-Version:Content-Type; bh=07HmPxTZ6oq0X/K APDrp6QKxL9FeFtgQ796uJpoM1SM=; b=PRRMg7TkTZtEF7SCP7uymrdMzT7kcTk ii30hslXREzES/3Fl9BHdEmeHIq/XX2kocMCjDQOnX+Bf+iF1nDlFkjhf1HqiH8+ VugIjdREGOOTKQ+H6a5px3O4cAeXH8cH/Nj7KE7d8mbfzu37DzyZ1315V0A83CRS gWu80UE6wFZk= Received: from suonayi2006 ( [203.119.80.8] ) by ajax-webmail-wmsvr26 (Coremail) ; Thu, 20 Oct 2011 16:13:57 +0800 (CST) Date: Thu, 20 Oct 2011 16:13:57 +0800 (CST) From: SuoNayi To: users@activemq.apache.org Message-ID: <67c2fcb1.18a82.1332064ce1e.Coremail.suonayi2006@163.com> In-Reply-To: References: <2d7326a6.196fc.133203ed818.Coremail.jswqne@163.com> Subject: Reply:Re: Why does consumer has a lower performance comparing with producer? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_323344_652200269.1319098437150" X-Originating-IP: [203.119.80.8] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 110829(14649.4006.3992) Copyright (c) 2002-2011 www.mailtech.cn 163com X-CM-CTRLDATA: fc0HSGZvb3Rlcl9odG09MjQ4ODo4MQ== X-CM-TRANSID: GsGowGApz0BF2J9OkWAEAA--.15111W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/xtbB0gbeGk0vK-wDlAACsw X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_323344_652200269.1319098437150 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit With the performance of consumer, one of the important factors is which message cursor you have chosen to apply, for better performance ,vmcursor is suggested. At 2011-10-20 15:42:28,"Torsten Mielke" wrote: >Are these persistent messages? > >From my own performance tests I know that enqueuing a persistent message takes longer than dequeuing it, which is the opposite behavior from what you're seeing. Persistent msgs need to be persisted to the brokers store. > >Do you encounter the same behavior when turning off compression? >Are producer/broker/consumer on the same machine? >Also, I presume there are no transactions used? > > > >Torsten Mielke >torsten@fusesource.com >tmielke@blogspot.com > >On Oct 20, 2011, at 9:32 AM, lzr wrote: > >> Hi all, >> >> >> In my cases, I produces and consumes messages with big data: 40K per message, 10000 messages produced and consumed for each exchange. For better performance I used jms.useCompression in my connection and it did work well: >> 10000 messages sent in 5 seconds; >> But my consumer takes about 70 seconds to receive these messages from queue (Just received, no process to message). >> How is the consumer so lower than producer? Is there any optimization to the consumer? >> >> >> It's much appreciated if any suggestions! >> >> >> Best regards, >> Zhuran Li > > > > > ------=_Part_323344_652200269.1319098437150--