Hello team,
I am using the docker axoniq se version, as defined here Docker Hub.
I would like to connect the docker process using jmx and visualize the metrics in Jvisualvm. Axonserver is running in remote location and hence I have added below as env params in docker compose
image: ${AXON_SERVER_IMAGE_VERSION_NAME}
hostname: axonserver
environment:
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.rmi.port=7778 -Dcom.sun.management.jmxremote.port=7778 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=xx.xx.xx.xx -Xmx3500m -Xms2000m -XX:+UseG1GC"
In the logs its showing as picked
axonserver_1 | Picked up JAVA_TOOL_OPTIONS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.rmi.port=77│Trying 13.233.215.170...
78 -Dcom.sun.management.jmxremote.port=7778 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=xx.xx.xx.xx -Xmx1500m -Xms1000m -XX:+UseG1GC"
axonserver_1 | _ ____ │
axonserver_1 | / \ __ _____ _ __ / ___| ___ _ ____ _____ _ __ │
axonserver_1 | / _ \ \ \/ / _ \| '_ \\___ \ / _ \ '__\ \ / / _ \ '__| │
axonserver_1 | / ___ \ > < (_) | | | |___) | __/ | \ V / __/ | │
axonserver_1 | /_/ \_\/_/\_\___/|_| |_|____/ \___|_| \_/ \___|_| │
axonserver_1 | Standard Edition Powered by AxonIQ │
axonserver_1 | │
axonserver_1 | version: 4.5.1
Also exposed the ports in docker-composed and also from host.
Still I am not able to connect in visual vm rather telnet itself is failing. Is the axonserver, picking up the ENV value.
Kindly let know if any step is missing.