You can start the Sync Service with JMX remote enabled and all security disabled, but this isn't recommended for production systems.
-
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=falseFor example:
cd <installLocation>/service-syncjava -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-3.0.x.jar org.alfresco.service.sync.dropwizard.SyncService server config.ymlNote
Make sure the ports for
com.sun.management.jmxremote.portandcom.sun.management.jmxremote.rmi.portare open. Also, replaceservice-sync-3.0.x.jarwith 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.authenticateandcom.sun.management.jmxremote.ssl. -
Start JConsole by typing the following command:
jconsole -
Select Remote Process, and enter the Sync Service IP, and
com.sun.management.jmxremote.portvalue, as shown in the example below. -
Click Connect.