Insecure JMX connection - Insecure JMX connection - Alfresco - Alfresco Sync Service - Alfresco/Alfresco-Sync-Service/5.2/Alfresco-Sync-Service/Configure/Connect-through-JMX/Insecure-JMX-connection - 5.2 - 5.2

Alfresco Sync Service

Platform
Alfresco
Product
Alfresco Sync Service
Release
5.2
License
ft:lastPublication
2026-10-21T23:06:45.849000
ft:locale
en-US

You can start the Sync Service with JMX remote enabled and all security disabled, but this isn’t recommended for production systems.

  1. Start the service with the following Java options by substituting the required host name and ports:
     -Dcom.sun.management.jmxremote=true
     -Djava.rmi.server.hostname=<sync-service-IP>
     -Dcom.sun.management.jmxremote.port=<jmx-remote-port>
     -Dcom.sun.management.jmxremote.rmi.port=<jmx-rmi-port>
     -Dcom.sun.management.jmxremote.authenticate=false
     -Dcom.sun.management.jmxremote.ssl=false

    For example:

     cd <installLocation>/service-sync
    
     java -Xmx2G -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=34.253.209.238
     -Dcom.sun.management.jmxremote.port=50800 -Dcom.sun.management.jmxremote.rmi.port=50801
     -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
     -Djava.io.tmpdir=/var/tmp/dsync -cp postgresql.jar:service-sync-x.x.x.jar
     org.alfresco.service.sync.dropwizard.SyncService server config.yml
    
    Note: Make sure the ports for com.sun.management.jmxremote.port and com.sun.management.jmxremote.rmi.port are open. Also, replace service-sync-x.x.x.jar with your exact version.
    Note: For production systems, use both SSL client certificates to authenticate the client host, and password authentication for user management, by enabling com.sun.management.jmxremote.authenticate and com.sun.management.jmxremote.ssl.
  2. Start JConsole by typing the following command:
     jconsole
    
  3. Select Remote Process, and enter the Sync Service IP, and com.sun.management.jmxremote.port value, as shown in the example below.
  4. Click Connect.
    The New Connection dialog box with the Local Process radio button and the Remote Process radio button