Search code examples
javawindowsjvmjconsolejrmp

Connect JConsole to another user's process


I've got a Win64 C++ program that hosts a JVM. When executing normally, I can connect to it from JConsole and see the stats. The process appears in the list of local processes.

When the same program is running as another user (from a scheduled job with saved credentials), the process is not in the list. I've got admin rights on the machine, not sure if it matters.


Solution

  • Find the PID of the process in Task Manager, then run

    "PATH_TO_JDK_BIN\jconsole" PID