I've been trying to monitor a locally running Tomcat via JConsole. I, of course, added
-Dcom.sun.management.jmxremote
to the CATALINA_OPTS variable in catalina.bat, but when starting JConsole, I couldn't find the process in the process list.
After some searching, I tried out the (more complicated?) non-local setting, further adding
set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=%my.jmx.port% \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false
and using the right parameters in JConsole, I was able to connect via the remote interface.
Has anyone else tried and succeded in using JConsole/Tomcat in a pure local setting or is the pseudo-remote way the only chance to get a local tomcat monitored?