You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Thomas Gagné <tg...@wideopenwest.com> on 2007/03/08 04:31:50 UTC

ActiveMQ sees subscriber when none exists

During testing of my client it appeared as though some messages weren't
arriving at my subscriber.  jconsole showed there were two consumers but
only one was running.  I used a netstat to see if there were any open
sockets but none existed.  Still, activemq was misplacing messages.  I
had to recycle it to make it go away.

FYI

-- 
Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
      <http://gagne.homedns.org/~tgagne/> for more great reading.


Re: ActiveMQ sees subscriber when none exists

Posted by Thomas Gagné <tg...@wideopenwest.com>.
I was able to make the problem go away by having Stomp.Connection record
each of the destinations subscribed-to and unsubscribe from each as the
connection was being destroyed.  This may not be necessary in 4.1.1 or
4.2, but it's probably not a /bad/ idea as far as cleaning-up after
ourselves is concerned.

-- 
Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
      <http://gagne.homedns.org/~tgagne/> for more great reading.



Re: ActiveMQ sees subscriber when none exists

Posted by James Strachan <ja...@gmail.com>.
On 3/8/07, Thomas Gagné <tg...@wideopenwest.com> wrote:
> James Strachan wrote:
> > <snip>
> > Was this a stomp client?
> Yes, both the client and consumer were Stomps.

Coolio

> > There was a bug in 4.1.0 where stale stomp
> > connections which had not DISCONNECTed would lurk around and hog
> > messages until broker restart/explicit close. We've fixed it in 4.1.1
> > (due out real soon). You could try the 4.1-SNAPSHOT (or 4.2-SNAPSHOT)
> > to check its really fixed for you
> >
> I'll keep my eye out for it.

The 4.1-SNAPSHOT build (of what will be 4.1.1 real soon now) is here
if you wanna try it...

http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/apache-activemq/4.1-SNAPSHOT/

(the newer the tarball the better, so nearer the bottom of that page)


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: ActiveMQ sees subscriber when none exists

Posted by Thomas Gagné <tg...@wideopenwest.com>.
James Strachan wrote:
> <snip>
> Was this a stomp client? 
Yes, both the client and consumer were Stomps.
> There was a bug in 4.1.0 where stale stomp
> connections which had not DISCONNECTed would lurk around and hog
> messages until broker restart/explicit close. We've fixed it in 4.1.1
> (due out real soon). You could try the 4.1-SNAPSHOT (or 4.2-SNAPSHOT)
> to check its really fixed for you
>
I'll keep my eye out for it.

-- 
Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
      <http://gagne.homedns.org/~tgagne/> for more great reading.


Re: ActiveMQ sees subscriber when none exists

Posted by James Strachan <ja...@gmail.com>.
On 3/8/07, Thomas Gagné <tg...@wideopenwest.com> wrote:
> During testing of my client it appeared as though some messages weren't
> arriving at my subscriber.  jconsole showed there were two consumers but
> only one was running.  I used a netstat to see if there were any open
> sockets but none existed.  Still, activemq was misplacing messages.  I
> had to recycle it to make it go away.

Was this a stomp client? There was a bug in 4.1.0 where stale stomp
connections which had not DISCONNECTed would lurk around and hog
messages until broker restart/explicit close. We've fixed it in 4.1.1
(due out real soon). You could try the 4.1-SNAPSHOT (or 4.2-SNAPSHOT)
to check its really fixed for you

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: ActiveMQ sees subscriber when none exists

Posted by Thomas Gagné <tg...@wideopenwest.com>.
Rob Davies wrote:
> thanks for the information Thomas. Could you tell us about the version
> you are using and your environment ? This might be a known issue that
> has already been resolved
tgagne:/home/tgagne/work/apache-activemq-4.1.0-incubator bin/activemq
--version
ACTIVEMQ_HOME: /home/tgagne/work/apache-activemq-4.1.0-incubator

ActiveMQ 4.1.0-incubator
For help or more information please see: http://www.logicblaze.com

-- 
Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
      <http://gagne.homedns.org/~tgagne/> for more great reading.


Re: ActiveMQ sees subscriber when none exists

Posted by Rob Davies <ra...@gmail.com>.
thanks for the information Thomas. Could you tell us about the  
version you are using and your environment ? This might be a known  
issue that has already been resolved

cheers,

Rob Davies
http://rajdavies.blogspot.com/



On 8 Mar 2007, at 03:31, Thomas Gagné wrote:

> During testing of my client it appeared as though some messages  
> weren't
> arriving at my subscriber.  jconsole showed there were two  
> consumers but
> only one was running.  I used a netstat to see if there were any open
> sockets but none existed.  Still, activemq was misplacing messages.  I
> had to recycle it to make it go away.
>
> FYI
>
> -- 
> Visit <http://tggagne.blogspot.com/>,<http://gagne.homedns.org/> or
>       <http://gagne.homedns.org/~tgagne/> for more great reading.
>