Taddeusz Posted January 20, 2019 Share Posted January 20, 2019 I'm trying to troubleshoot a possible memory leak on my Guacamole docker container. I have enabled JMX and this works fine when I'm running the container locally on my MacBook Pro. When I run the same container on my Unraid server and export the JMX port VisualVM says it cannot connect. This is tomcat's setenv.sh file: #!/bin/sh export JAVA_OPTS="-Dcom.sun.management.jmxremote.rmi.port=9090 \ -Dcom.sun.management.jmxremote=true \ -Dcom.sun.management.jmxremote.port=9090 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.local.only=false \ -Djava.rmi.server.hostname=localhost" Quote Link to comment
Taddeusz Posted January 20, 2019 Author Share Posted January 20, 2019 I figured this out. I needed to set java.rmi.server.hostname to the IP of my Unraid server. With it set to localhost it will only allow connections from localhost. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.