When I start JConsole
it identifies my java process(local) but it is not able to connect to it.
Connection Failed: Retry?
The connection to 17424 did not succeed.
Would you like to try again?
Selecting connect again gives the same error(17424 is the pid of the java process).On the other hand jvisualvm
works perfectly. In jvisualvm I see the following details
PID: 17424
Host: localhost
Main class: Conatainer
JVM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04, mixed mode)
Java: version 1.7.0_11, vendor Oracle Corporation
Java Home: /home/aniket/jdk1.7.0_11/jre
JVM Flags: <none>
Has anyone encountered this situation before? Is it a bug? Is there a work around?