Advertisement

04.25.2005 at 03:27PM PDT, ID: 21401975
[x]
Attachment Details

Connecting jconsole to Tomcat on Windows

Asked by mtadj in Java Programming Language, Java Servlets

Tags: vmid, jconsole, map, tomcat

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.jmxremote 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.jmxremote

Thanks!
Start Free Trial
[+][-]04.25.2005 at 03:31PM PDT, ID: 13862717

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2005 at 03:38PM PDT, ID: 13862754

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2005 at 03:46PM PDT, ID: 13862785

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2005 at 03:48PM PDT, ID: 13862799

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2005 at 04:00PM PDT, ID: 13862846

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2005 at 04:12PM PDT, ID: 13862897

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2005 at 02:50PM PDT, ID: 13871144

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.26.2005 at 03:07PM PDT, ID: 13871254

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2005 at 05:48AM PDT, ID: 13908461

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2005 at 08:54PM PDT, ID: 13914969

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.08.2005 at 08:21PM PDT, ID: 13956734

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, Java Servlets
Tags: vmid, jconsole, map, tomcat
Sign Up Now!
Solution Provided By: Netminder
Participating Experts: 3
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32