I am trying to get jconsole to run on my Tomcat 5.5 installation.
I can run jconsole on a sample app that I run from the command line. For example:
$ javac com/example/mbeans/*.java
$ java -Dcom.sun.management.jmxre
mote com.example.mbeans.Main
$ jconsole
The above works and will find my app.
However for Tomcat I am trying to run jconsole by specifying the PID. So for example if the pid for Tomcat is 4800:
$ jconsole 4800
I get the following error message:
Unable to attach to 4800: Could not map vmid to user name
Now I am logged in as Administrator. When I check the task manager, the username for Tomcat is SYSTEM. The problem is probably here, but I don't know how to resolve it.
And to be thorough in this post, I did set in my CATALINA_OPTS environment variable this line as perscribed and the box has been restarted:
-Dcom.sun.management.jmxre
mote
Thanks!
Start Free Trial