VisualVM and jconsole are two useful tools for debugging JVM issues. However they both rely on a JMX port to be open on the remote instance. You can work around this on the fly by running jstatd
on the remote host, but you’ll find certain things disabled. So ideally, the jmx port will be enabled on startup.
Continue reading “Assign an automatic JMX port to a Java application”