We have a Java process that we run as a Windows service (using srvany). It works with Java 1.6 (1.6.0.23 at the moment).
In the past (Windows XP), I could connect JConsole to processes, in Windows 7 I can no longer do this.
If I run jconsole <pid> , I get "Invalid process id: 4488". Services run as a SYSTEM user.
If I force the service to start as a user on my desktop (using "Logging in as this account"), the service process ID is displayed in JConsole, but they are inactive and I cannot connect.
Is it impossible to dynamically connect to Java processes when they run as a Windows 7 service?
java windows-7 service jmx
Neil wightman
source share