You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Manuel Teira <mt...@tid.es> on 2007/06/25 14:41:49 UTC

JMX Console and deleted messages

Hello.

I've found that the JMX exposed operation browseAsTable() for a Queue 
MBean, is giving me access to already delivered and deleted messages of 
the queue. I wonder if this is a bug, since those messages should be 
stored somewere, producing undesired memory consumption.

I'm using amq 4.2-SNAPSHOT, with an Oracle backend and no journal. The 
ACTIVEMQ_MSGS have zero entries, but I'm able to browse the already 
delivered messages (the Queue attribute QueueSize is zero).

Is this a bug, or the expected behaviour?

Regards.


Re: JMX Console and deleted messages

Posted by Manuel Teira <mt...@tid.es>.
James Strachan escribió:
> On 6/25/07, Manuel Teira <mt...@tid.es> wrote:
>> Hello.
>>
>> I've found that the JMX exposed operation browseAsTable() for a Queue
>> MBean, is giving me access to already delivered and deleted messages of
>> the queue. I wonder if this is a bug, since those messages should be
>> stored somewere, producing undesired memory consumption.
>>
>> I'm using amq 4.2-SNAPSHOT, with an Oracle backend and no journal. The
>> ACTIVEMQ_MSGS have zero entries, but I'm able to browse the already
>> delivered messages (the Queue attribute QueueSize is zero).
>>
>> Is this a bug, or the expected behaviour?
>
> Are you sure the messages are persistent?
What do you mean? Browsing the messages with the browseAsTable JMX 
operation says:

JMSDeliveryMode: PERSISTENT

So, yes, the message is persistent, but I'm consuming it, so, it is 
deleted from the database, but I'm still able to access it using the JMX 
console.
 
The message was already consumed, and the database backend coherently 
shows zero messages:

SQL> select count(*) from activemq_msgs;

  COUNT(*)
----------
         0


Best regards.



>
> If not it sounds like a bug


Re: JMX Console and deleted messages

Posted by James Strachan <ja...@gmail.com>.
On 6/25/07, Manuel Teira <mt...@tid.es> wrote:
> Hello.
>
> I've found that the JMX exposed operation browseAsTable() for a Queue
> MBean, is giving me access to already delivered and deleted messages of
> the queue. I wonder if this is a bug, since those messages should be
> stored somewere, producing undesired memory consumption.
>
> I'm using amq 4.2-SNAPSHOT, with an Oracle backend and no journal. The
> ACTIVEMQ_MSGS have zero entries, but I'm able to browse the already
> delivered messages (the Queue attribute QueueSize is zero).
>
> Is this a bug, or the expected behaviour?

Are you sure the messages are persistent?

If not it sounds like a bug
-- 
James
-------
http://macstrac.blogspot.com/

Re: JMX Console and deleted messages

Posted by stirlingc <sc...@alarmpoint.com>.
I'm seeing the exact behaviour described below with ActiveMQ 5.3.

Using the JMX MBean, I purge a queue that contains 100 persistent messages. 
The statistics are updated to indicate the 100 dequeue and resulting 0 queue
size.  However, browseAsTable[] still shows all 100 messages.

There was no follow up to the issue reported below, so is this expected
behaviour?  It seems strange to me.  I was using the QueueView's
deleteMessages(selector) to remove specific messages, but although the queue
size is updated to indicate the delete, subsequent use of QueueView's
browseMessages(selector), with the same selector used to delete, still
returns data.


Manuel Teira Paz wrote:
> 
> Hello.
> 
> I've found that the JMX exposed operation browseAsTable() for a Queue 
> MBean, is giving me access to already delivered and deleted messages of 
> the queue. I wonder if this is a bug, since those messages should be 
> stored somewere, producing undesired memory consumption.
> 
> I'm using amq 4.2-SNAPSHOT, with an Oracle backend and no journal. The 
> ACTIVEMQ_MSGS have zero entries, but I'm able to browse the already 
> delivered messages (the Queue attribute QueueSize is zero).
> 
> Is this a bug, or the expected behaviour?
> 
> Regards.
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/JMX-Console-and-deleted-messages-tp11285971p26832283.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.