You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by skimstercg <St...@uscg.mil> on 2007/01/10 23:52:14 UTC
Use JMX to monitor remote AMQ
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.
Re: Use JMX to monitor remote AMQ
Posted by skimstercg <St...@uscg.mil>.
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
Christopher G. Stach II wrote:
>
> skimstercg wrote:
>> 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.
>>
>>
>>
>>
>> Christopher G. Stach II wrote:
>>> skimstercg wrote:
>>>> 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.
Re: Use JMX to monitor remote AMQ
Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
skimstercg wrote:
> 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.
>
>
>
>
> Christopher G. Stach II wrote:
>> skimstercg wrote:
>>> 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
Re: Use JMX to monitor remote AMQ
Posted by skimstercg <St...@uscg.mil>.
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.
Christopher G. Stach II wrote:
>
> skimstercg wrote:
>> 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.
Re: Use JMX to monitor remote AMQ
Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
skimstercg wrote:
> Doesn't work for me. Still get "Connection failed".
Did you enable remote JMX connection on AMQ's command line?
--
Christopher G. Stach II
Re: Use JMX to monitor remote AMQ
Posted by Daryl Richter <ng...@comcast.net>.
On 1/11/07 8:44 AM, "skimstercg" <St...@uscg.mil> wrote:
>
> 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?
>
>
>
> Daryl Richter-3 wrote:
>>
>>
>>
>>
>> On 1/10/07 5:52 PM, "skimstercg" <St...@uscg.mil> wrote:
>>
>>>
>>> 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.
>>>
>>
>> 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
>>
>>
>>
>>
>>
>>
--
Daryl
http://itsallsemantics.com
"I¹m afraid of the easy stuff its always harder than it seems"
-- Bill Hampton, 2006
Re: Use JMX to monitor remote AMQ
Posted by skimstercg <St...@uscg.mil>.
Doesn't work for me. Still get "Connection failed".
Daryl Richter-3 wrote:
>
>
>
>
> On 1/10/07 5:52 PM, "skimstercg" <St...@uscg.mil> wrote:
>
>>
>> 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.
>>
>
> 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
>
>
>
>
>
>
--
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.
Re: Use JMX to monitor remote AMQ
Posted by Daryl Richter <ng...@comcast.net>.
On 1/10/07 5:52 PM, "skimstercg" <St...@uscg.mil> wrote:
>
> 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.
>
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