Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 45319 invoked from network); 1 May 2008 21:09:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 21:09:42 -0000 Received: (qmail 70153 invoked by uid 500); 1 May 2008 21:09:41 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 70126 invoked by uid 500); 1 May 2008 21:09:41 -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 70090 invoked by uid 99); 1 May 2008 21:09:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 14:09:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 209.85.162.176 as permitted sender) Received: from [209.85.162.176] (HELO el-out-1112.google.com) (209.85.162.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 21:08:53 +0000 Received: by el-out-1112.google.com with SMTP id y26so539113ele.16 for ; Thu, 01 May 2008 14:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=2Y4VOeD0bn3s9eDr6Ats7+cSkpUwOxB8HcngXv8R+3Q=; b=LU4K6hxie8S8reBo01fyQfUAFyz1/VKd3rragJrb6rElY70vIWwbXiEKaqN50TeX78XhlJNKFqhKxKKPQKOeTSLLhuwd512SyKFp7O2CWb86tmvSZ1AQWtVfccFzdiiJMlaOv99wcfl5U0ywJCQanZ7/kr22pUqU6gzV7gSn2AM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kYN/UKsG6lUoDa9jSgg/TzkgGKdqsWqAg+ICHX8s2IogfdJdUJwm4MgoQLO2AOGyBAAgWVIdks27lMgsxWgUFTfu9ZbEo1hvz/Ra4PGcEyFLGJ7pwhQHIcqUesI8S/nMYUHqhaWewNto5x8S2DXV8Osetc4J98/SosAx45Ix3AU= Received: by 10.142.211.10 with SMTP id j10mr958162wfg.202.1209676146756; Thu, 01 May 2008 14:09:06 -0700 (PDT) Received: by 10.142.128.2 with HTTP; Thu, 1 May 2008 14:09:06 -0700 (PDT) Message-ID: <7b3355cb0805011409v5f17318bw2d39f0da163b6886@mail.gmail.com> Date: Thu, 1 May 2008 15:09:06 -0600 From: "Bruce Snyder" To: users@activemq.apache.org Subject: Re: Publisher can't publish after a certain number of messages are sent In-Reply-To: <16995039.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <16995039.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On Thu, May 1, 2008 at 2:16 PM, seven_ephors wrote: > > I am using the TopicPublisher.java code in the 5.0.0\example\src directory, > with slight modifications. It seem to work pretty well, but when I have > large number of messages, it always stop working after certain number of > messages are published. For a BytesMessage with data size of 256X128, I can > only send up to 743 message. After that, the publisher can't send any more > message to the broker. In order to get it to work again, I need to ctrl-C > on the ActiveMQ DOS window, and restart the broker. Since I need to publish > topic continuously, I need to find solution to the problem. > > My questions are, 1, anyone have similar problem with a publisher? 2, What > am I doing wrong? 3, What solution is there? Most typically this is an issue with the consumer side processing being much slower than the broker side, so the messages back up on the broker. One solution to such slow consumer situations is to use the consumer prefetch prefetch policy. See the following for more info: http://activemq.apache.org/what-is-the-prefetch-limit-for.html Please read through that and see if it describes your situation and if it does, give the prefetch policy a try. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E