cancel
Showing results for 
Search instead for 
Did you mean: 

Remote jconsole access - Connection Failed

matt_bennett
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to connect to my alfresco installation using jconsole. The server doesn't have a GUI so I'm connecting remotely from my laptop, and I'm totally new to JMX so quite possibly making a rookie mistake.

I'm specifying service:jmx:rmi:///jndi/rmi://my-server:50500/alfresco/jmxrmi as the remote service and authenticating as controlRole:change_asap as per [1], but getting a Connection Failed error. The port is open.

I've not yet changed the password in alfresco-jmxrmi.password, and I've also not moved it to $JRE/lib/management/jmxremote.access as referenced in its comments – this seems like an out of date instruction because the filename is different.

I'm running Alfresco Community 3.3 on sun-java6-jdk, and my laptop's jconsole version is as follows:

mjb-mbp:~ matt$ jconsole -version
JConsole version "1.6.0_22-b04-307"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

Is my remote process incorrect? Or have I missed something else?

Many thanks
Matt.

[1] http://wiki.alfresco.com/wiki/JMX
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
That looks correct.

What O.S. is your server running as?

Check (by running a command like netstat on my-server) that 50500 is bound to myserver's external IP address, and in particular is not bound to localhost.

Also check that there is not a firewall blocking access.

Unfortunately there are known problems with JMX access on 3.3 so it may not be your "fault".    There are fixes on 3.4 going through testing at the moment.

matt_bennett
Champ in-the-making
Champ in-the-making
The server is running Debian Lenny.

Netstat shows that the port is listening with IPv6, which is weird. But I can telnet to the server's IPv4 address on 50500 just fine, and it binds using tcp6 as well:

administrator@my-server:~$ sudo netstat -tap | grep 50500
tcp6       0      0 [::]:50500              [::]:*                  LISTEN      6737/java      
tcp6       0      0 my-server:50500 my-client:64987 ESTABLISHED 6737/java
 

There are no firewalls, but I am connecting via a VPN.

Interestingly enough when I run a standalone Alfresco 3.4b on the same machine, 50500 is listening on the IPv6 address still, but I can't telnet to IPv4 address on 50500 anymore. Needless to say jconsole can't connect either.

Are these symptoms along the same lines as those being fixed currently?

Matt.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.