Skip to main content

Issues with JConsole on Windows

1 reply [Last post]
Joined: 2005-07-14

I am trying to use JConsole to attach to a running VM on a Windows Terminal Server. JConsole refuses to attach to the process, and the console window says "This virtual machine does not support dynamic attach." The VM is being run by another user, and I have full administrative rights on the machine. In case it matters, I should also mention that the target VM is launched by WebStart.

The process shows up on a "jps" listing:

E:\Program Files\Java\jdk1.6.0_16\bin>jps
15884 -- process information unavailable
8888 -- process information unavailable
12116 -- process information unavailable
10120 -- process information unavailable
24460 Jps

But if I run "jconsole 8888" I get failure to connect with the exception "This virtual machine does not support dynamic attach" in the console window.

If I log into the machine as myself, start the target VM, and then run JConsole, I can attach to and debug it with no issues.

Here's what I've tried so far:
1. Verified that the target VM is Java 6.
2. For good measure, I added to the VM startup.
3. I changed my TMP environment variable to point to the user's TMP directory.
4. I changed my USERNAME environment variable to the target user's username.
5. Verified that I have full read/write permissions in the user's TMP directory.
6. Tried all the above using the RUNAS utility to impersonate the user.
7. Tried all the above logged in using a Terminal Server console.

In all cases the JConsole refuses to connect. I feel I've tried all permutations of the options above with no success. Is there a workaround I can use or is this just a bit of Windows brain damage that doesn't have a solution?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-11-01

I believe that Java does the security check, so only the access control set in Java matters.