You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by xabhi <xa...@gmail.com> on 2017/07/13 10:02:20 UTC

/bin/activemq command not working

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.

Re: /bin/activemq command not working

Posted by Tim Bain <tb...@alumni.duke.edu>.
Your port numbers don't match.

On Jul 13, 2017 4:21 AM, "xabhi" <xa...@gmail.com> 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.
>