Issues with JConsole on Windows
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:
15884 -- process information unavailable
8888 -- process information unavailable
12116 -- process information unavailable
10120 -- process information unavailable
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 -Dcom.sun.management.jmxremote 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?