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" <christian.po...@gmail.com> 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)? > >http://activemq.apache.org/kahadb.html > > >On Fri, Jun 21, 2013 at 10:24 AM, Francisco <c...@iti.upv.es> 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: >> http://activemq.2283324.n4.nabble.com/How-to-delete-a-persistent-message-tp4668470.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > >-- >*Christian Posta* >http://www.christianposta.com/blog >twitter: @christianposta