Skip to main content

jconsole on Windows XP (Java 6 or Java 7 ea) - does it just not work?

4 replies [Last post]
swpalmer
Offline
Joined: 2003-06-10

JMX seems cool.. but I can't for the life of me get jconsole to connect to a local process. What's the secret?
I can try with Java 6 or 7 ea b18. With or without -Dcom.sun.management.jmxremote all the time jconsole times out attempting to connect.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fred34
Offline
Joined: 2004-06-19

The com.sun switch isn't needed post JDK5 since the jconsole uses the attach api to remotely activate the switch on the target JVM. Since the thing is timing out, it is possible that the TCP/UDP connections used by JMX are being blocked. You have a slightly over zealous firewall active? Try getting jconsole to connect to itself and see what happens. If even that times out then check the IP settings and stuff on the computer. The attach API is only used to activate the JMX agent on the target JVM, all the data of interest is still transfered over the network stack.

swpalmer
Offline
Joined: 2003-06-10

jconsole cannot attach to itself. Windows Firewall (the only one that I even have) is off.

I don't get it. It just doesn't work as advertised... or rather at all.

swpalmer
Offline
Joined: 2003-06-10

Wait a sec.. I think it may be that damn Microsoft TV/Video connection that keeps appearing for no good reason and has a bogus IP address. It's a Microsoft bug that they refuse to fix. I have to reboot so it will go away...

swpalmer
Offline
Joined: 2003-06-10

Yep, that was it.... Java always gets caught on that bogus network connection.. there should be something in the JRE to work around it, since Microsoft won't fix it.