Discussion:
Use JMX to monitor remote AMQ
skimstercg
2007-01-10 22:52:14 UTC
Permalink
I've installed AMQ v4.1.0 to both my local box and remote box. Using
jconsole installed on my local box I can connect to local box with a url
like: service:jmx:rmi://mylocalhostname/jndi/rmi://localhost:1099/jmxrmi.
However, when I try to connect to remote box using a url like:
service:jmx:rmi://remotehostname/jndi/rmi://localhost:1099/jmxrmi, I can't
connect. Any ideas? Thanks.
--
View this message in context: http://www.nabble.com/Use-JMX-to-monitor-remote-AMQ-tf2955761.html#a8268418
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Daryl Richter
2007-01-10 23:15:36 UTC
Permalink
Post by skimstercg
I've installed AMQ v4.1.0 to both my local box and remote box. Using
jconsole installed on my local box I can connect to local box with a url
like: service:jmx:rmi://mylocalhostname/jndi/rmi://localhost:1099/jmxrmi.
service:jmx:rmi://remotehostname/jndi/rmi://localhost:1099/jmxrmi, I can't
connect. Any ideas? Thanks.
try:

service:jmx:rmi://remotehostname/jndi/rmi://remotehostname:1099/jmxrmi

--
Daryl
http://itsallsemantics.com

"We want great men who, when fortune frowns, will not be discouraged."
    -- Colonel Henry Knox, 1776
skimstercg
2007-01-11 13:44:11 UTC
Permalink
Doesn't work for me. Still get "Connection failed".
Post by Daryl Richter
Post by skimstercg
I've installed AMQ v4.1.0 to both my local box and remote box. Using
jconsole installed on my local box I can connect to local box with a url
service:jmx:rmi://mylocalhostname/jndi/rmi://localhost:1099/jmxrmi.
service:jmx:rmi://remotehostname/jndi/rmi://localhost:1099/jmxrmi, I can't
connect. Any ideas? Thanks.
service:jmx:rmi://remotehostname/jndi/rmi://remotehostname:1099/jmxrmi
--
Daryl
http://itsallsemantics.com
"We want great men who, when fortune frowns, will not be discouraged."
-- Colonel Henry Knox, 1776
--
View this message in context: http://www.nabble.com/Use-JMX-to-monitor-remote-AMQ-tf2955761.html#a8277656
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Christopher G. Stach II
2007-01-11 13:48:32 UTC
Permalink
Post by skimstercg
Doesn't work for me. Still get "Connection failed".
Did you enable remote JMX connection on AMQ's command line?
--
Christopher G. Stach II
skimstercg
2007-01-11 14:00:48 UTC
Permalink
On my local box, all I needed was to set useJmx="true" and uncomment the
managementContext section of the conf/activemq.xml file. On my remote box's
bin/activemq command I see:


if [ -z "$SUNJMX" ] ; then
#SUNJMX="-Dcom.sun.management.jmxremote.port=1616
-Dcom.sun.management.jmxremo
te.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
SUNJMX="-Dcom.sun.management.jmxremote"
fi

I'm assuming this is the how you turn on remote JMX monitoring. Now for a
newbe question: what command line arg do I pass to turn this on. Thanks for
the help.
Post by Christopher G. Stach II
Post by skimstercg
Doesn't work for me. Still get "Connection failed".
Did you enable remote JMX connection on AMQ's command line?
--
Christopher G. Stach II
--
View this message in context: http://www.nabble.com/Use-JMX-to-monitor-remote-AMQ-tf2955761.html#a8277962
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Christopher G. Stach II
2007-01-11 14:03:20 UTC
Permalink
Post by skimstercg
On my local box, all I needed was to set useJmx="true" and uncomment the
managementContext section of the conf/activemq.xml file. On my remote box's
if [ -z "$SUNJMX" ] ; then
#SUNJMX="-Dcom.sun.management.jmxremote.port=1616
-Dcom.sun.management.jmxremo
te.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
SUNJMX="-Dcom.sun.management.jmxremote"
fi
I'm assuming this is the how you turn on remote JMX monitoring. Now for a
newbe question: what command line arg do I pass to turn this on. Thanks for
the help.
Post by Christopher G. Stach II
Post by skimstercg
Doesn't work for me. Still get "Connection failed".
Did you enable remote JMX connection on AMQ's command line?
--
Christopher G. Stach II
http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html
--
Christopher G. Stach II
skimstercg
2007-01-18 23:21:35 UTC
Permalink
I found the solution to my problem. The answer was unrelated to AMQ or JMX.
It was due to weirdness in the /etc/hosts file on Red Hat Linux box. Fixing
this, fixed RMI, which fixed JMX and all's well. More info can be found at:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=8092&postdays=0&postorder=asc&start=0
Post by Christopher G. Stach II
Post by skimstercg
On my local box, all I needed was to set useJmx="true" and uncomment the
managementContext section of the conf/activemq.xml file. On my remote box's
if [ -z "$SUNJMX" ] ; then
#SUNJMX="-Dcom.sun.management.jmxremote.port=1616
-Dcom.sun.management.jmxremo
te.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
SUNJMX="-Dcom.sun.management.jmxremote"
fi
I'm assuming this is the how you turn on remote JMX monitoring. Now for a
newbe question: what command line arg do I pass to turn this on. Thanks for
the help.
Post by Christopher G. Stach II
Post by skimstercg
Doesn't work for me. Still get "Connection failed".
Did you enable remote JMX connection on AMQ's command line?
--
Christopher G. Stach II
http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html
--
Christopher G. Stach II
--
View this message in context: http://www.nabble.com/Use-JMX-to-monitor-remote-AMQ-tf2955761.html#a8441374
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Daryl Richter
2007-01-11 13:49:16 UTC
Permalink
Post by skimstercg
Doesn't work for me. Still get "Connection failed".
Hmmm. That works for me. Is there any chance there's a firewall blocking
port 1099?
Post by skimstercg
Post by Daryl Richter
Post by skimstercg
I've installed AMQ v4.1.0 to both my local box and remote box. Using
jconsole installed on my local box I can connect to local box with a url
service:jmx:rmi://mylocalhostname/jndi/rmi://localhost:1099/jmxrmi.
service:jmx:rmi://remotehostname/jndi/rmi://localhost:1099/jmxrmi, I can't
connect. Any ideas? Thanks.
service:jmx:rmi://remotehostname/jndi/rmi://remotehostname:1099/jmxrmi
--
Daryl
http://itsallsemantics.com
"We want great men who, when fortune frowns, will not be discouraged."
-- Colonel Henry Knox, 1776
--
Daryl
http://itsallsemantics.com

"I¹m afraid of the easy stuffŠ its always harder than it seemsŠ"
-- Bill Hampton, 2006
Loading...