|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
a question about TTL(time to live) ...?I sended to queue a message after message setting TTL(time to live : 30 second)
then I waited for 2 minute , but the message didn't expire. I wonder why the message didn't be removed... |
|
|
Re: a question about TTL(time to live) ...?HI there,
are you looking at JConsole to determine this ? --- I think you are running into a particular behavior with ActiveMQ. The Time To Live is not regularly checked (there is no cleanup thread for ttled messages). To be more concrete the TTL is checked checked when the message is dispatched to the consumer or when the message is paged into memory from the secondary storage. If you simply send one message without having consumers, the message will not vanish from the broker. If you start up a consumer, you will notice the message disappearing without reaching the consumer. I hope that helps Andreas On May 15, 2009, at 3:33 AM, angel7 wrote: > > I sended to queue a message after message setting TTL(time to live : > 30 > second) > > then i waited for 2 minute , > > but the message didn't expire. > > why ? > > > -- > View this message in context: http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23551953.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > |
|
|
Re: a question about TTL(time to live) ...?thank you for your kind
So, Isn't there how to remove automatically the message in queue after ttl , until a consumer register ?
|
|
|
Re: a question about TTL(time to live) ...?Unfortunately not in the current release - though using a Queue
browser will have the same result - in forcing expired messages to be removed On 15 May 2009, at 08:55, angel7 wrote: > > thank you for your kind > > So, > Isn't there how to remove automatically the message in queue after > ttl , > until a consumer register ? > > > > Andreas Gies wrote: >> >> HI there, >> >> are you looking at JConsole to determine this ? --- I think you are >> running into >> a particular behavior with ActiveMQ. The Time To Live is not >> regularly >> checked >> (there is no cleanup thread for ttled messages). To be more concrete >> the TTL is checked >> checked when the message is dispatched to the consumer or when the >> message >> is paged into memory from the secondary storage. >> If you simply send one message without having consumers, the message >> will not >> vanish from the broker. If you start up a consumer, you will notice >> the message disappearing >> without reaching the consumer. >> >> I hope that helps >> Andreas >> >> On May 15, 2009, at 3:33 AM, angel7 wrote: >> >>> >>> I sended to queue a message after message setting TTL(time to live : >>> 30 >>> second) >>> >>> then i waited for 2 minute , >>> >>> but the message didn't expire. >>> >>> why ? >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23551953.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23555120.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > |
|
|
Re: a question about TTL(time to live) ...?the fix will be in 5.3 perhaps? -D
|
|
|
Re: a question about TTL(time to live) ...?This should make 5.3, it is covered by
https://issues.apache.org/activemq/browse/AMQ-1112 which I hope to complete in the next few days. 2009/7/2 Dan Tran <dantran@...> > > > the fix will be in 5.3 perhaps? > > -D > > rajdavies wrote: > > > > Unfortunately not in the current release - though using a Queue > > browser will have the same result - in forcing expired messages to be > > removed > > > > On 15 May 2009, at 08:55, angel7 wrote: > > > >> > >> thank you for your kind > >> > >> So, > >> Isn't there how to remove automatically the message in queue after > >> ttl , > >> until a consumer register ? > >> > >> > >> > >> Andreas Gies wrote: > >>> > >>> HI there, > >>> > >>> are you looking at JConsole to determine this ? --- I think you are > >>> running into > >>> a particular behavior with ActiveMQ. The Time To Live is not > >>> regularly > >>> checked > >>> (there is no cleanup thread for ttled messages). To be more concrete > >>> the TTL is checked > >>> checked when the message is dispatched to the consumer or when the > >>> message > >>> is paged into memory from the secondary storage. > >>> If you simply send one message without having consumers, the message > >>> will not > >>> vanish from the broker. If you start up a consumer, you will notice > >>> the message disappearing > >>> without reaching the consumer. > >>> > >>> I hope that helps > >>> Andreas > >>> > >>> On May 15, 2009, at 3:33 AM, angel7 wrote: > >>> > >>>> > >>>> I sended to queue a message after message setting TTL(time to live : > >>>> 30 > >>>> second) > >>>> > >>>> then i waited for 2 minute , > >>>> > >>>> but the message didn't expire. > >>>> > >>>> why ? > >>>> > >>>> > >>>> -- > >>>> View this message in context: > >>>> > http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23551953.html > >>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >>>> > >>> > >>> > >>> > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23555120.html > >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> > > > > > > > > -- > View this message in context: > http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p24308415.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com |
| Free embeddable forum powered by Nabble | Forum Help |