qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey_Zhemzhit...@troika.ru
Subject Re: Delete all the messages from a queue.
Date Tue, 01 Feb 2011 15:11:01 GMT
Hi Jonathan,

I have tried all the ways to get a valid number of messages but without 
qpid-stat and qpid-tool return the same number of messages that is not 0. 
If I try to browse the queue by means of HermesJMS there are no messages 
in the queue.

Best Regards,
Sergey Zhemzhitsky

Jonathan Robie <jonathan.robie@redhat.com> 
01.02.2011 17:56
Please respond to


Re: Delete all the messages from a queue.

On 02/01/2011 09:19 AM, Sergey_Zhemzhitsky@troika.ru wrote:
> Well, queue seems to be empty, because I can't read a message from it.
> Does anybody know how make qpid-tool and qpid-stat return an appropriate
> information?

1. qpid-stat -q gives statistics for a queue

2. In qpid-tool, first do a 'list queue' to get the OID of the queue, 
then do a 'show <OID>'. The property 'msgDepth' tells you how many 
messages are on the queue. See screen output below my signature.


qpid: list queue
Object Summary:
     ID   Created   Destroyed  Index 
     123  14:33:09  - 135.qmfc-v2-hb-localhost.localdomain.16162.1
     124  14:33:09  -          135.qmfc-v2-localhost.localdomain.16162.1
     125  14:33:09  - 135.qmfc-v2-ui-localhost.localdomain.16162.1
     126  14:33:09  -          135.reply-localhost.localdomain.16162.1
     127  14:33:09  -          135.topic-localhost.localdomain.16162.1

qpid: show 123
Object of type: 
     Attribute              123
     vhostRef               135
     name                   qmfc-v2-hb-localhost.localdomain.16162.1
     durable                False
     autoDelete             True
     exclusive              True
     arguments              {u'qpid.policy_type': u'ring'}
     altExchange            162
     msgTotalEnqueues       0
     msgTotalDequeues       0
     msgTxnEnqueues         0
     msgTxnDequeues         0
     msgPersistEnqueues     0
     msgPersistDequeues     0
     msgDepth               0

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message