You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Donnell Alwyn <Al...@uk.mizuho-sc.com> on 2014/04/03 23:12:46 UTC

RE: Messages stuck in broker, requires restart.

Many thanks Gary, 

I tried setting the policyEntry useCache=false to no avail.

To give to some more background, I have a durable consumer subscribing to messages on an activeMQ channel and sending them to a database in an XA Transaction. 

A producer sends 1000's of these messages to the activeMQ channel. I've seen other circumstances where the consumer connection is restarted and the pending messages flow through (these connections were not involved in a XA transaction ), but when I flush the consumer connection pool for my durable subscriber in the above case nothing flows through, requires a broker restart.

Possibly related to a slow consumer, are there any other techniques you could suggest that may help manage this situation. I would like to get away from restarting the production broker each time this happens.

Regards
Alwyn




------------------------------------------------------------------------
Alwyn Donnell

ISD Middleware and Architecture
Mizuho International
Bracken House
1 Friday Street
London EC4M 9JA

email: alwyn.donnell@uk.mizuho-sc.com
Tel.: +44 (0)20 7090 6569


-----Original Message-----
From: Gary Tully [mailto:gary.tully@gmail.com] 
Sent: 28 March 2014 16:08
To: users@activemq.apache.org
Subject: Re: Messages stuck in broker, requires restart.

there was a contention issue around the cursor cache, that could be avoided with <policyEntry ... useCache="false" > - that may be what you are seeing. It could be worth a try.

On 28 March 2014 11:04, Donnell Alwyn <Al...@uk.mizuho-sc.com> wrote:
> Hi
>
> I'm using activmq 5.7.0, stress testing has revealed a problem in that messages get stuck in the broker and are not delivered to the target topic. Only a broker restart solves the problem, then the messages flow to the topic. What has been observed is that the Enqueue Counter for the topic is for example 10,000 and the Dequeue counter is as 9,990, so 10 messages are missing. The Pending Queue size for the topic is 10. After a broker restart the Dequeue Counter becomes 10 and Pending Queue Size goes back to 0. Obviously statistics are reset after a broker restart. After the restart the messages are picked up by a durable subscription. This is obviously not an ideal scenario in a production environment.
> Anyone have any ideas what could be causing this ?
>
> Regards
> Alwyn
>
>
>
>
>
> This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this message in error please delete it and any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com.
>
> Any opinions expressed in this message may be those of the author and not necessarily those of the company. The company accepts no responsibility for the accuracy or completeness of any information contained herein. This message is not intended to create legal relations between the company and the recipient.
>
> Recipients should please note that messages sent via the Internet may be intercepted and that caution should therefore be exercised before dispatching to the company any confidential or sensitive information.
> Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd. Member of Mizuho Financial Group. Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. Member of the London Stock Exchange.
>
> Registered in England No. 1203696. Registered office as above.



--
http://redhat.com
http://blog.garytully.com

This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this message in error please delete it and any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com.
 
Any opinions expressed in this message may be those of the author and not necessarily those of the company. The company accepts no responsibility for the accuracy or completeness of any information contained herein. This message is not intended to create legal relations between the company and the recipient. 

Recipients should please note that messages sent via the Internet may be intercepted and that caution should therefore be exercised before dispatching to the company any confidential or sensitive information. 
Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd. Member of Mizuho Financial Group. Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. Member of the London Stock Exchange.

Registered in England No. 1203696. Registered office as above.