Docker Tomcat VisualVM Weirdness


Taddeusz

Recommended Posts

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"

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.