/bin/activemq command not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

/bin/activemq command not working

xabhi
This post was updated on .
Hi,
I am trying to get destination stats using /bin/activemq command. This was earlier available via activemq-admin command. (http://activemq.apache.org/activemq-command-line-tools-reference.html)

? ./activemq dstat topics --jmxurl service:jmx:rmi:///jndi/rmi://mqbrokerqa:9011/jmxrmi        
...
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO: Broker not available at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

It is not picking up the jmx url.

However, below command works:
./activemq query --view InactiveDurableTopicSubscribers --jmxurl service:jmx:rmi:///jndi/rmi://mqbrokerqa:9011/jmxrmi

Thanks,
Abhi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: /bin/activemq command not working

Tim Bain
Your port numbers don't match.

On Jul 13, 2017 4:21 AM, "xabhi" <[hidden email]> wrote:

> Hi,
> I am trying to get destination stats using /bin/activemq command. This was
> earlier available via activemq-admin command. (
> http://activemq.apache.org/activemq-command-line-tools-reference.html
> <http://activemq.apache.org/activemq-command-line-tools-reference.html>  )
>
> ? ~/apache-activemq-5.14.4/bin/activemq dstat topics
> -Dactivemq.jmx.url=service:jmx:rmi:///jndi/rmi://mqbrokerqa:9011/jmxrmi
> ...
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> INFO: Broker not available at:
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>
> It is not picking up the jmx url.
>
> However, below command works:
> ./activemq query --view InactiveDurableTopicSubscribers --jmxurl
> service:jmx:rmi:///jndi/rmi://mqbrokerqa:9011/jmxrmi
>
> Thanks,
> Abhi
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/bin-activemq-command-not-working-tp4728517.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Loading...