Jconsole cannot connect

2019-04-06 21:08发布

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?

2条回答
Animai°情兽
2楼-- · 2019-04-06 21:49

Adding below property as VM argument in Run Configurations --> Arguments --

-Dcom.sun.management.jmxremote=true
查看更多
我命由我不由天
3楼-- · 2019-04-06 22:15

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.

查看更多
登录 后发表回答