You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by javaG <ze...@gmail.com> on 2013/12/12 01:28:39 UTC

Topic Advisories pile up in ActiveMQ

I have a stomp client that uses temp queue as reply back destination
('/temp-queue/'+uuid_generated_value) to which I subscribe in stomp client
and then send a message on a fixed queue in which I set the reply-to header
to ('/temp-queue/'+uuid_generated_value).  JMS consumer in Java for the
fixed queue responds with reply. This request reply works fine but the issue
is that ActiveMQ web console shows  topics like  

ActiveMQ.Advisory.Consumer.Queue.ID:MYHOST-51244-1386804544982-4:1:39

that keep piling up each time a message is sent and response received.
memory usage ramps up over time.

If I was using Java JMS client, temp-dest.delete() API after receiving
response takes care of this problem but there is no such API for Stomp.
After I receive response in StomP, I unsubscribe this temp queue. This
removes the consumer but those advisory topics keep piling up.  Any solution
to this problem?





--
View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Advisories-pile-up-in-ActiveMQ-tp4675430.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Topic Advisories pile up in ActiveMQ

Posted by javaG <ze...@gmail.com>.
Thanks for reply. Yes all messages on temp-queues are consumed by the stomp
client. After stomp client receives the message on temp-queue it
unsubscribes from it. Also I use non-persistent messaging. 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Advisories-pile-up-in-ActiveMQ-tp4675430p4675452.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Topic Advisories pile up in ActiveMQ

Posted by Christian Posta <ch...@gmail.com>.
the messages in temp queues will live in broker memory as they are not
persistent. are you consuming all of the messages from the temp
queues?

On Wed, Dec 11, 2013 at 6:52 PM, javaG <ze...@gmail.com> wrote:
> Thank you for your post. I tried these settings in activemq.xml and restarted
> everything but it did not make any difference.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Advisories-pile-up-in-ActiveMQ-tp4675430p4675432.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Re: Topic Advisories pile up in ActiveMQ

Posted by javaG <ze...@gmail.com>.
Thank you for your post. I tried these settings in activemq.xml and restarted
everything but it did not make any difference.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Advisories-pile-up-in-ActiveMQ-tp4675430p4675432.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Topic Advisories pile up in ActiveMQ

Posted by Timothy Bish <ta...@gmail.com>.
On 12/11/2013 07:28 PM, javaG wrote:
> I have a stomp client that uses temp queue as reply back destination
> ('/temp-queue/'+uuid_generated_value) to which I subscribe in stomp client
> and then send a message on a fixed queue in which I set the reply-to header
> to ('/temp-queue/'+uuid_generated_value).  JMS consumer in Java for the
> fixed queue responds with reply. This request reply works fine but the issue
> is that ActiveMQ web console shows  topics like
>
> ActiveMQ.Advisory.Consumer.Queue.ID:MYHOST-51244-1386804544982-4:1:39
>
> that keep piling up each time a message is sent and response received.
> memory usage ramps up over time.
>
> If I was using Java JMS client, temp-dest.delete() API after receiving
> response takes care of this problem but there is no such API for Stomp.
> After I receive response in StomP, I unsubscribe this temp queue. This
> removes the consumer but those advisory topics keep piling up.  Any solution
> to this problem?
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Advisories-pile-up-in-ActiveMQ-tp4675430.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
See this: http://activemq.apache.org/delete-inactive-destinations.html

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/