Disable jconsole popup: "Failed to connect to security. Try unsafe again?"

Is there a way to disable the jconsole popup?

jconsole

I know that I can configure SSL for http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdemv , but that would mean that I would need to do this on all servers (java) and all clients (jconsole). Not the friendliest solution for non-critical internal applications. Any other solutions?

+5
source share
2 answers

It's impossible. Jconsole always tries to connect using SSL first, and this cannot be changed. From jconsole sources it is defined

private boolean shouldUseSSL = true; 

which can be set to false only after it cannot connect using SSL. Suggestions: use another JMX client tool (e.g. jvisualvm or jmc) or enable SSL.

+2
source

Unable to use SSL! Use jconsole -debug -J"-Djava.util.logging.config.file=FILENAME" to view the logged exception. You probably also need to configure the -Djava.rmi.server.hostname=server.example

+1
source

All Articles