We must configure tomcat to allow a remote process to connect to it for monitoring.
Essentially
CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M -server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
This will tell tomcat that it will monitor from (say) jconsole through port 7091 remotely.
Then launched jconsole using
jconsole localhost:7091
Now jconsole successfully connects.
amrk7
source share