The JVisualVM is not able to connect to a win-service using the --openpid <PID>
argument! The old JConsole can this only in WinXP because of a Bug. The alternative is to specify a JMX Agent for the service.
This VM Arguments have to be passed to the prunsrv.exe
-Dcom.sun.management.jmxremote.port=3333 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
For more detail take a look at: Connecting to JMX Agents Explicitly