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=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. -
Start JConsole by typing the following command:
jconsole
- Select Remote Process, and enter the Sync Service IP, and com.sun.management.jmxremote.port value, as shown in the example below.
-
Click Connect.