From users-return-10582-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Fri Sep 07 03:02:37 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 99770 invoked from network); 7 Sep 2007 03:02:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2007 03:02:36 -0000 Received: (qmail 22210 invoked by uid 500); 7 Sep 2007 03:02:29 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22173 invoked by uid 500); 7 Sep 2007 03:02: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 22164 invoked by uid 99); 7 Sep 2007 03:02:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 20:02:29 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of james.strachan@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 03:03:46 +0000 Received: by wx-out-0506.google.com with SMTP id i30so341427wxd for ; Thu, 06 Sep 2007 20:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=kefLPmyA2VXuYHinIrF58+GzCw2oLQ9OMGuv9unRONM=; b=PEPw9Zq7YCvpZGHy+/0H/+hzlsGTPy/cJzGHHTyAalu/sgU4mtKWoNYEO/lCSk74E1kaUhgFvepSVbE+SgTrwWF0+44GlTlu//RNJS3rwgbXZPgTGggIprgaY9EdUyy4TwU5xlqvHvl9DEffB+IFUZSOJgb/f3AGHmy16DuTvpY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YQGtJ+h4nb5cj6oDRTuKznBjMaKXqR7KTTE/1DwNp9fvOS8Gh9ZwTuYbWgb28ASu1DxoR9o6E41GOzLe9RJ+tDiXqrgifM4VtvRUsaZZ0ituuNQA5bqINLlgc3Wc/gv13fMGPgzDaQkLHYjpTxysifUxuI2gQZ/vzvOdRVNzgs0= Received: by 10.90.98.3 with SMTP id v3mr2623397agb.1189134122971; Thu, 06 Sep 2007 20:02:02 -0700 (PDT) Received: by 10.90.105.10 with HTTP; Thu, 6 Sep 2007 20:02:02 -0700 (PDT) Message-ID: Date: Fri, 7 Sep 2007 04:02:02 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Missing messages in multithreaded producer In-Reply-To: <12513434.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12513434.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Could you try with a more recent release; say at least 4.1.1? There have been numerous bug fixes since 4.1 On 9/6/07, tendlu wrote: > > Using ActiveMQ 4.1 > > I have a producer that does the following - > > 1. main thread creates a Connectionfactory using tcp > 2. creates a few threads - say 5 > 3. each thread creates a new Connection and a new Session using the > connectionfactory created in the main thread. Session is created with > auto-ack and no transaction > 4. each thread creates a producer(Queue) and a message and sends it to a > Queue. This is done a few times in a loop (say 10) > 5. main thread waits for the spawned threads to complete the tasks > > In the above example the queue should have 5x10 = 50 msgs on the broker. But > I consistently don't see 50msgs. I check this using jconsole. > > Configuration: > Broker : persistent=true , using kaha persistence > Connectionfactory: AsyncSend=false > > Can you please let me know if I am missing something or is this is a known > bug in Active MQ4.1? > > BTW, If I run my producer as a single threaded appplication then I see all > messages in the broker. If I run multiple instances of the single threaded > producer application, then I see all messages. > > TIA > > > -- > View this message in context: http://www.nabble.com/Missing-messages-in-multithreaded-producer-tf4388977s2354.html#a12513434 > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- James ------- http://macstrac.blogspot.com/