Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 8451 invoked from network); 3 Sep 2008 13:50:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 13:50:57 -0000 Received: (qmail 80016 invoked by uid 500); 3 Sep 2008 13:50:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 79999 invoked by uid 500); 3 Sep 2008 13:50:55 -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 79988 invoked by uid 99); 3 Sep 2008 13:50:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 06:50:55 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.247.192.231] (HELO EUnet.yu) (194.247.192.231) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 13:49:54 +0000 Received: from [194.247.199.205] (billingdev-hotspot.eunet.co.yu [194.247.199.205] (may be forged)) by EUnet.yu (8.13.6/8.13.6) with ESMTP id m83DoJUn027516 for ; Wed, 3 Sep 2008 15:50:19 +0200 Message-ID: <48BE961B.90405@ttmsolutions.com> Date: Wed, 03 Sep 2008 15:50:19 +0200 From: Dejan Bosanac User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Failing to read messages, AMQ5.0.0, Stomp References: <19248190.post@talk.nabble.com> <48BD0758.8000901@ttmsolutions.com> <19275913.post@talk.nabble.com> In-Reply-To: <19275913.post@talk.nabble.com> Content-Type: multipart/alternative; boundary="------------010909050606080408070809" X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_40,HTML_40_50,HTML_MESSAGE,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.3 X-AVAS-Spam-Level: x X-Virus-Checked: Checked by ClamAV on apache.org --------------010909050606080408070809 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Try setting activemq.prefetchSize header value to 1 on a SUBSCRIBE command and see if that helps. Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net jpoloney wrote: > Hi Dejan, > > The queue is definitely not empty. Either that, and then receives some > messages, but then is never able to read them again. I am looking at it > right now and there is 160,000 messages waiting to be consumed, but my > consumer is failing to read them. > > I restarted the consumer and it consumed about 400 messages, and then > stopped. Further respawning of consumers doesn't appear to be do anything. > The ActiveMQ admin console definitely shows the messages, but the consumer > isn't doing anything. > > The other weird thing is, if I restart the message queue (and it loads all > the persistent messages in), then it has no problems reading them again. > > Any thoughts? > > -- Joel > > > Dejan Bosanac-3 wrote: > >> Hi Joel, >> >> it seems to me like you are trying to read from an empty queue. >> >> Did you try some of the monitoring techniques >> (http://activemq.apache.org/how-can-i-monitor-activemq.html) to see the >> state of the broker (and particular queues)? >> >> Regards >> >> -- >> Dejan Bosanac >> >> >> http://www.ttmsolutions.com - get a free ActiveMQ user guide >> >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Scripting in Java - http://www.scriptinginjava.net >> >> >> > > --------------010909050606080408070809--