[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
can't connect jconsole to terracotta server from remote machine  XML
Forum Index -> Terracotta Platform
Author Message
bradrust

neo

Joined: 07/29/2010 13:59:25
Messages: 8
Offline

I have a terracotta instance with a tc-config jmx port setting of 19520. From remote machines I can telnet to that port and get jmx related binary responses.

However, when trying to connect from jconsole or other thirdparty jmx clients, I get the following exception... "with a root cause of non-JRMP server at remote endpoint".

error connecting to server:Failed to connect to service:jmx:rmi:///jndi/rmi://10.200.12.233:19520/jmxrmi [Nested Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]]

I have tried several mutations of connect URL's from jconsole -- all without specifying login credentials. (e.g., service:jmx:jmxmp://10.200.12.233:19520)

I can however connect via process id from a jconsole on the machine running the terracotta instance. It appears to be a problem for me only from remote machine. The dev-console can connect just fine.

using terracotta-3.0.1

server section of tc-config.xml
<dso-port>19510</dso-port>
<jmx-port>19520</jmx-port>
<l2-group-port>19530</l2-group-port>

snippet from terracotta server logs
[main] INFO com.terracottatech.console - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:19520]

bradrust

neo

Joined: 07/29/2010 13:59:25
Messages: 8
Offline

I did notice that com.sun.management.jmxremote was not set to anything other than empty string. Unless the reason it is listed in the SystemProperties is that it is set and not null.


[main] INFO com.tc.logging.TCLogging - All Java System Properties for this Terracotta instance:
========================================================================
cluster-forceshutdown : true
com.sun.management.jmxremote :
nelrahma

journeyman

Joined: 05/01/2008 13:43:05
Messages: 18
Offline

I think you see tc.jar in your classpath.

jconsole -J-Djava.class.path=JAVA_HOME/lib/jconsole.jar:JAVA_HOME/lib/tools.jar:TC_HOME/lib/tc.jar

Hope that helps.
etsai

master

Joined: 07/31/2007 10:14:38
Messages: 72
Offline

Try this

jconsole -J-Djava.class.path="${TC_INSTALL_DIR}/bin/tc.jar:${JAVA_HOME}/lib/jconsole.jar"
and then click remote process and type
service:jmx:jmxmp://<host>:<jmx-port>

bradrust

neo

Joined: 07/29/2010 13:59:25
Messages: 8
Offline

That worked thank you.

Now I need to work on incorporating this concept in the monitor tool we are using which uses a jmx client to attach. But at least I have something to work with.
bradrust

neo

Joined: 07/29/2010 13:59:25
Messages: 8
Offline

Is there any other alternative to connecting to the jmx mbean? I can't figure out how to make this work with any other tools (except jconsole noted in the thread).

I need to monitor this remotely. How are people accomplishing this task without running the dev-console?

Is there some other form of URL which would solve this?
gkeim

ophanim

Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline

You never said exactly what it is you're hoping to monitor.

Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community
kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Any tool that supports jmxmp protocol should be able to connect remotely just like you did with JConsole. Which tool are you using specifically?

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
bradrust

neo

Joined: 07/29/2010 13:59:25
Messages: 8
Offline

Two tools I was using were

* Zenoss via ZenJMX (http://community.zenoss.org/docs/DOC-3396). We use that for monitoring tomcat, activemq, and other JVMs.

* jmxterm - command line jmx browser of sorts (http://wiki.cyclopsgroup.org/jmxterm:manual)

Mainly we wanted to have some nice statistics monitoring in Zenoss to comliment the other jmx stats for tomcat, etc... Requests, Object counts (any session related data), etc...

 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team