Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 41941 invoked from network); 25 Mar 2009 12:56:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2009 12:56:15 -0000 Received: (qmail 5086 invoked by uid 500); 25 Mar 2009 12:56:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 5059 invoked by uid 500); 25 Mar 2009 12:56:14 -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 5049 invoked by uid 99); 25 Mar 2009 12:56:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 12:56:14 +0000 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 (athena.apache.org: local policy) Received: from [192.77.186.17] (HELO mx3.progress.com) (192.77.186.17) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 12:56:05 +0000 Received: from mx3.progress.com (127.0.0.1) by mx3.progress.com (MlfMTA v3.2r9) id hp8kua0171sr for ; Wed, 25 Mar 2009 08:55:44 -0400 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx3.progress.com (SonicWALL 6.2.2.1073) with ESMTP; Wed, 25 Mar 2009 08:55:43 -0400 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [10.128.10.24]) by progress.com (8.13.8/8.13.8) with ESMTP id n2PCthBA016030 for ; Wed, 25 Mar 2009 08:55:43 -0400 (EDT) Received: from [10.11.1.170] ([172.16.202.132]) by NTEXFE01.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Mar 2009 08:55:42 -0400 Message-Id: <2FDC8F1E-22E3-4BF5-8245-39BD79022492@progress.com> From: Andreas Gies To: users@activemq.apache.org In-Reply-To: <22689964.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: How to discard messages for the non-durable queue Date: Wed, 25 Mar 2009 13:51:28 +0100 References: <22689964.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-OriginalArrivalTime: 25 Mar 2009 12:55:43.0270 (UTC) FILETIME=[01E3E460:01C9AD49] X-Mlf-Version: 6.2.2.1073 X-Mlf-UniqueId: o200903251255430251239 X-Virus-Checked: Checked by ClamAV on apache.org Hi there have you considered to set a time to live on your messages. If you send messages NON_PERSISTENT that should work. If you send PERSISTENT messages, you should probably configure the =20 DiscardingDLQBrokerPlugin as well. Best regards Andreas On Mar 24, 2009, at 10:16 PM, ashoknan wrote: > > I am using ActiveMQ 5.1..wanted to know how to discard messages for =20= > the > non-durable queue. > Trying to deal with slow consumer problem...Wanted to avoid Broker =20 > reaching > 100%. When ever broker reaches 100% on the memory, everything stops. > > Will discarding will avoid broker reaching 100% on the memory. > > When the broker reaches 100% this what i see in the threaddump > > "Thread-4" prio=3D6 tid=3D0x3e20d400 nid=3D0x128c waiting on condition > [0x3ec0f000..0x3ec0fa94] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x0b278ff8> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at = java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer=20 > $ConditionObject.await(AbstractQueuedSynchronizer.java:1925) > at > java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:=20= > 317) > at > org=20 > .apache=20 > .activemq.transport.FutureResponse.getResult(FutureResponse.java:40) > at > org=20 > .apache=20 > .activemq=20 > .transport.ResponseCorrelator.request(ResponseCorrelator.java:80) > at > org=20 > .apache=20 > .activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:=20= > 1195) > at = org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:=20 > 1644) > - locked <0x06be2688> (a java.lang.Object) > at > org=20 > .apache=20 > .activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:=20= > 227) > at = org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:=20 > 74) > - locked <0x06be1008> (a = org.apache.activemq.ActiveMQMessageProducer) > at = org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:=20 > 59) > at = org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:=20 > 534) > at = org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:=20 > 511) > at org.springframework.jms.core.JmsTemplate=20 > $2.doInJms(JmsTemplate.java:477) > at =20 > org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:428) > at = org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:=20 > 475) > at = org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:=20 > 467) > at = jmsexample.ExampleProducer.sendMessage(ExampleProducer.java:21) > at jmsexample.Bootstrap$1.run(Bootstrap.java:49) > at java.lang.Thread.run(Thread.java:619) > > > > > > > --=20 > View this message in context: = http://www.nabble.com/How-to-discard-messages-for-the-non-durable-queue-tp= 22689964p22689964.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --- Mit freundlichen Gr=FCssen - Kind Regards Andreas Gies Principal Consultant Open Source Center of Competence Progress Software GmbH Agrippinawerft 26 50678 K=F6ln E-Mail agies@progress.com Direct Line +49 (0)9953 980349 Mobile +49 (0)170 5759611 Skype +44 (0)20 3239 2922 Skype +353 (0)1 443 4971 Skype +1 (0)781 262 0168 http://www.progress.com http://fusesource.com http://open-source-adventures.blogspot.com ------------------------------------------------------- Progress Software GmbH Sitz der Gesellschaft: Agrippinawerft 26, 50678 Koeln; Niederlassung: Fuerstenrieder Str. 279, 81377 Muenchen Amtsgericht Koeln, HRB 15620; Geschaeftsfuehrung: David Ireland -------------------------------------------------------