You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sridhar2008 <ac...@komandur.com> on 2008/05/16 03:51:59 UTC
Dissecting subcription ID ...
I am trying to analyze a sub ID and identify the consumer process associated
with it ...
For example,
ID_<host_name>-57617-1210810061660-1_0
>From IdGenerator.java, 57617 seems to come from
new ServerSocket(0).getLocalPort()
However, I can't find this port doing 'netstat -anp | grep 57617'. Does this
have anything to do with consumer having no listener port ?
Is there a way to trace from sub ID back to the consumer process ? (os:
linux)
Thanks,
- Sridhar
--
View this message in context: http://www.nabble.com/Dissecting-subcription-ID-...-tp17266246s2354p17266246.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dissecting subcription ID ...
Posted by Rob Davies <ra...@gmail.com>.
On 16 May 2008, at 02:51, Sridhar2008 wrote:
>
>
> I am trying to analyze a sub ID and identify the consumer process
> associated
> with it ...
>
> For example,
>
> ID_<host_name>-57617-1210810061660-1_0
>
> From IdGenerator.java, 57617 seems to come from
> new ServerSocket(0).getLocalPort()
>
> However, I can't find this port doing 'netstat -anp | grep 57617'.
> Does this
> have anything to do with consumer having no listener port ?
>
> Is there a way to trace from sub ID back to the consumer process ?
> (os:
> linux)
>
> Thanks,
> - Sridhar
> --
> View this message in context: http://www.nabble.com/Dissecting-subcription-ID-...-tp17266246s2354p17266246.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
The IdGenerator open and closes an operating system assigned port to
use as part of the seed used to generate unique ids - its not related
to the subscriber at all. There isn't a direct way currently of
associating a subscriber id to a process unfortunately :(
cheers,
Rob
http://open.iona.com/products/enterprise-activemq
http://rajdavies.blogspot.com/