Why can't I connect?

I'm trying to use JConsole to connect to a running process to monitor that program's memory usage.

I followed the instructions outlined in the tutorial (http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html), but I'm getting nowhere.

I start the Java 2D demo:

JDK_HOME/bin/java -Dcom.sun.management.jmxremote -jar JDK_HOME/demo/jfc/Java2D/Java2Demo.jar

I'm running Java 1.6.0 so, as I understand it, the jmxremote option should be superfluous (I've tried it also without). When I start up JConsole it can see the new process, but displays the message "The Management agent is not enabled on this process".

What am I doing wrong?

I am running on Windows XP.

[718 byte] By [david_batesa] at [2007-11-27 3:12:10]
# 1

Hi,

I'd suggest you use jps -lv and jinfo to verify that your process is indeed

running what you think it is.

You might also have a look here:

http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole

Hope this helps,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-12 8:14:39 > top of Java-index,Core,Monitoring & Management...