You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jeff Armstrong <ja...@avvasi.com> on 2011/08/05 20:20:05 UTC
Counting rejected/replaced messages on a queue
I would like to be able to detect the situation where adding messages to a queue causes it to exceed the queue's maximum size. I know I can get the current byte depth and compare that to the maximum queue size to tell when it's about to start rejecting messages, but it would be even better if I could get a counter to see how many messages got rejected (or replaced if I use a replacement policy). I don't see any stats like this in the management schema. Is there possibly an indirect way of getting this information?
Thanks,
Jeff
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: Counting rejected/replaced messages on a queue
Posted by fadams <fr...@blueyonder.co.uk>.
There is indeed, it's called queueThresholdExceeded
It was only added in 0.10 I believe so that's something to be aware of.
Frase
Carl Trieloff wrote:
>
> I speak under correction, but I believe there is a QMF event for this,
> running qpid-printevents would print if there is one.
>
> if not, we should add one.
>
> Carl.
>
>
--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Counting-rejected-replaced-messages-on-a-queue-tp6657529p6657676.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: Counting rejected/replaced messages on a queue
Posted by Carl Trieloff <cc...@redhat.com>.
I speak under correction, but I believe there is a QMF event for this,
running qpid-printevents would print if there is one.
if not, we should add one.
Carl.
On 08/05/2011 02:20 PM, Jeff Armstrong wrote:
> I would like to be able to detect the situation where adding messages to a queue causes it to exceed the queue's maximum size. I know I can get the current byte depth and compare that to the maximum queue size to tell when it's about to start rejecting messages, but it would be even better if I could get a counter to see how many messages got rejected (or replaced if I use a replacement policy). I don't see any stats like this in the management schema. Is there possibly an indirect way of getting this information?
>
> Thanks,
> Jeff
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org