activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject RE: ActiveMQ data directory
Date Tue, 05 Apr 2016 18:38:21 GMT
Have the producer set the JMSExpiration header when the messages are
produced.

If that's not possible, use the TimeStampPlugin which has an option to set
a TTL on messages that arrive without one.
http://activemq.apache.org/timestampplugin.html
On Apr 5, 2016 11:10 AM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com>
wrote:

> Thank you. Is there any way to set a expiry time to delete the messages in
> the log after some configured time.
>
> Rajeswari
>
> -----Original Message-----
> From: tbain98@gmail.com [mailto:tbain98@gmail.com] On Behalf Of Tim Bain
> Sent: Tuesday, April 05, 2016 4:11 AM
> To: ActiveMQ Users <users@activemq.apache.org>
> Subject: Re: ActiveMQ data directory
>
> They actually can be kept even after all messages have been delivered
> successfully to consumers, if they contain acks for messages in an earlier
> file that hasn't yet been deleted.
> On Apr 5, 2016 12:26 AM, "Rob Davies" <rajdavies@gmail.com> wrote:
>
> >
> > > On 5 Apr 2016, at 05:23, Natarajan, Rajeswari <
> > rajeswari.natarajan@sap.com> wrote:
> > >
> > >
> > > Hi,
> > >
> > > I have below questions/assumptions . Please let me know if they are
> > correct
> > >
> > > the data directory size (along with Kaha DB)in activemq   increase
> > linearly with number of (same size) messages.
> >
> > Well - in chunks - maxFileLength is the maximum size of a message log.
> > When the first is full, another will be allocated - so if you aren’t
> > consuming the messages, or have a slow consumer - the number of message
> > logs can build up quickly. They also get periodically garbage collected
> > when all messages referenced in a particular log have been delivered
> > successfully to consumers.
> >
> > >
> > > maxFileLength -- specifies the maximum  file size of db-1.log file.
> > >
> > >
> > > Regards,
> > > Rajeswari
> >
> >
>

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