cancel
Showing results for 
Search instead for 
Did you mean: 

jmx remote connection

Not applicable
Hey,

I have alfresco 4.0 installed and try to connect from remote via jmx but it failed.
My client is JConsole, the URL I use looks like
service:jmx:rmi:///jndi/rmi://<hostname>:50500/alfresco/jmxrmi
Where <hostname> is the name of my host. The JMX user name and password are the defaults.
Unfortunately the connection failed. Could anybody help?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Are you trying to connect from the same machine or from a remote machine?

What JVM are you running?

And have you allowed JMX connections in the Java command line?

Not applicable
I'm trying to connect from a remote machine where Java 1.6.0_22 (64bit) is running.
The alfresco is an enterprise installation.

I added the following JMX setting to ${ALFRESCO_HOME}/tomcat/scripts/ctl.sh
-Dcom.sun.management.jmxremote.port=18086
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
After adding these settings the connection with "JConsole" did not work.

sharifu
Confirmed Champ
Confirmed Champ
i have same problem, i am using java 1.7 64bit on remote machine and i am trying to connect. it does not work "connection failed"

alfresco 4.0d running on centos 64bit with following settings


start_tomcat() {
    is_tomcat_running
    RUNNING=$?
    if [ $RUNNING -eq 1 ]; then
        echo "$0 $ARG: tomcat (pid $PID) already running"
    else
   rm -f $CATALINA_PID
   export JAVA_OPTS="-XX:MaxPermSize=1024m -Xms512m -Xmx1024m -XX:-DisableExplicitGC -Dalfresco.home=/opt/alfresco-4.0.d -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dsun.security.ssl.allowUnsafeRenegotiation=true"
   export JAVA_HOME=$JRE_HOME
   $TOMCAT_BINDIR/startup.sh
   if [ $? -eq 0 ];  then
            echo "$0 $ARG: tomcat started"
   else
            echo "$0 $ARG: tomcat could not be started"
            ERROR=1
   fi
    fi
}

daemon_tomcat() {
    export JAVA_OPTS="-XX:MaxPermSize=1024m -Xms512m -Xmx1024m -XX:-DisableExplicitGC -Dalfresco.home=/opt/alfresco-4.0.d -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dsun.security.ssl.allowUnsafeRenegotiation=true"
    export JAVA_HOME=$JRE_HOME
    $TOMCAT_BINDIR/catalina.sh run
}



my url

service:jmx:rmi:///jndi/rmi://172.16.0.46:50500/alfresco/jmxrmi


netstat -lpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
tcp        0      0 alfrescotest:xprint-server  *:*                         LISTEN      17826/soffice.bin  
tcp        0      0 *:mysql                     *:*                         LISTEN      3247/mysqld.bin    
tcp        0      0 *:ieee-mms                  *:*                         LISTEN      2589/rpc.statd     
tcp        0      0 *:sunrpc                    *:*                         LISTEN      2550/portmap       
tcp        0      0 alfrescotest:ipp            *:*                         LISTEN      2869/cupsd         
tcp        0      0 alfrescotest:smtp           *:*                         LISTEN      2895/sendmail: acce
tcp        0      0 *:50500                     *:*                         LISTEN      17850/java         
tcp        0      0 alfrescotest:8005           *:*                         LISTEN      17850/java         
tcp        0      0 *:8009                      *:*                         LISTEN      17850/java         
tcp        0      0 *:netbios-ssn               *:*                         LISTEN      17850/java         
tcp        0      0 *:47468                     *:*                         LISTEN      17850/java         
tcp        0      0 *:50508                     *:*                         LISTEN      17850/java         
tcp        0      0 *:webcache                  *:*                         LISTEN      17850/java         
tcp        0      0 *:47088                     *:*                         LISTEN      17850/java         
tcp        0      0 *:36786                     *:*                         LISTEN      17850/java         
tcp        0      0 *:ftp                       *:*                         LISTEN      17850/java         
tcp        0      0 *:ssh                       *:*                         LISTEN      2856/sshd          
tcp        0      0 *:pcsync-https              *:*                         LISTEN      17850/java         
tcp        0      0 *:microsoft-ds              *:*                         LISTEN      17850/java         
[root@alfrescotest tomcat]# netstat -tap | grep 50500
tcp        0      0 *:50500                     *:*                         LISTEN      17850/java         
[root@alfrescotest tomcat]#




a tcpdump shows jconsole communicating with alfresco


root@alfrescotest indexing]# tcpdump -i eth0 'port 50500'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
14:38:33.811074 IP win7-64bit.uk.domainasa.com.49446 > alfrescotest.uk.domainasa.com.50500: F 496621374:496621374(0) ack 1121139216 win 255
14:38:33.812807 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49446: F 1:1(0) ack 1 win 46
14:38:33.812994 IP win7-64bit.uk.domainasa.com.49446 > alfrescotest.uk.domainasa.com.50500: . ack 2 win 255

14:38:41.539756 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: S 3002379369:3002379369(0) win 8192 <mss 1460,nop,wscale 8,nop,nop,sackOK>
14:38:41.539805 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: S 1157509663:1157509663(0) ack 3002379370 win 5840 <mss 1460,nop,nop,sackOK,nop,wscale 7>
14:38:41.540689 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: . ack 1 win 256
14:38:41.540724 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: P 1:8(7) ack 1 win 256
14:38:41.540731 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: . ack 8 win 46
14:38:41.541305 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: P 1:19(18) ack 8 win 46
14:38:41.541693 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: P 8:25(17) ack 19 win 256
14:38:41.541700 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: P 25:84(59) ack 19 win 256
14:38:41.541737 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: . ack 84 win 46
14:38:41.542153 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: P 19:246(227) ack 84 win 46
14:38:41.543632 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: P 84:99(15) ack 246 win 255
14:38:41.584270 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: . ack 99 win 46
14:39:11.545454 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: F 99:99(0) ack 246 win 255
14:39:11.545609 IP alfrescotest.uk.domainasa.com.50500 > win7-64bit.uk.domainasa.com.49449: F 246:246(0) ack 100 win 46
14:39:11.545956 IP win7-64bit.uk.domainasa.com.49449 > alfrescotest.uk.domainasa.com.50500: . ack 247 win 255

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.