Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jconsole cannot connect

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?

like image 257
ControlAltDelete Avatar asked Aug 17 '13 23:08

ControlAltDelete


People also ask

How do I enable JConsole for remote monitoring?

In your JConsole, select Remote Process and connect to the server and port that you've specified in your artifactory. default (or default) file. Authenticate this with the username/password specified in your jmxremote. password file.

How do I start JConsole in Linux?

Starting JConsole. The jconsole executable can be found in JDK_HOME/bin, where JDK_HOME is the directory in which the Java Development Kit (JDK) is installed. If this directory is in your system path, you can start JConsole by simply typing jconsole in a command (shell) prompt.


1 Answers

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.

like image 95
ControlAltDelete Avatar answered Sep 28 '22 09:09

ControlAltDelete