Jconsole cannot connect

ControlAltDelete picture ControlAltDelete · Aug 18, 2013 · Viewed 19.1k times · Source

I am using VNC to connect to a server. I am able to VNC into the server, and open Jconsole, but cannot get it to connect to my process whether I include the PID or try connecting using the GUI. The weird thing is all the processes show up in the GUI. See below.

enter image description here

I get this when I try connecting:

enter image description here

Followed by

enter image description here

Is there something I need to do in order to get Jconsole working locally on a Linux server over VNC?

Answer

ControlAltDelete picture ControlAltDelete · Aug 21, 2013

Fix found here: You need to pass to the VM:

-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false

-- Edit - Fixed the =fals error mentioned in comments.