activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <>
Subject Re:Re: How to delete a persistent message
Date Tue, 25 Jun 2013 02:13:51 GMT
There's a option which can be turned on to logging why a KahaDB file can not 
be deleted when cleanup is performing.But I can not recall how to turn on it...

At 2013-06-24 23:42:18,"Christian Posta" <> wrote:
>Messages are logically deleted, in that they will no longer be associated
>with a destination, and the index tracks that. However, as for their
>appearance on disk, they will live in the journal file until the journal
>file is deleted, which happens automatically at defined intervals. You can
>alter the frequency it checks for cleanup with <kahaDB cleanup="time"/>
>property. If you don't want them auto removed, you can even archive them.
>If you're running into a situation where the number of log files you have
>grows unbounded, then there's a reason why those logs are staying around,
>ie, the contents aren't unused (messages not being ack'd)?
>On Fri, Jun 21, 2013 at 10:24 AM, Francisco <> wrote:
>> Hi all,
>> Regarding persistent messages, I discovered an undesired behavior I would
>> like to confirm here:
>>  - I know persistent messages will be saved on disk as they are received in
>> the broker. That's fine.
>>  - However, I thought that those messages would be automatically deleted
>> once all the subscribers confirm the reception of the message. However, it
>> seems to me that they still saved on disk forever and ever.
>>  - I thought I could solve this by setting a time ti expire. However, it
>> doesn't seems to work for me.
>> So, here are my questions:
>>  - Are persistent messages meant to live forever in the BBDD? In such case,
>> my BBDD will keep growing and growing...
>>  - Do I have any mean to delete those messages programatically (via Java)?
>> Many thanks in advance,
>> Francisco
>> --
>> View this message in context:
>> Sent from the ActiveMQ - User mailing list archive at
>*Christian Posta*
>twitter: @christianposta

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