Is there a way to disable this jconsole popup?
I know I can set up SSL per http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdemv, but that would mean I'd need to do that on all servers (java) and all clients (jconsole). Not the most friendly solution for non-critical in-house apps. Any other solutions?
It's not possible. Jconsole always tries first to connect using SSL and it's impossible to alter this behavior. From jconsole sources it's determined by
private boolean shouldUseSSL = true;
which can be set to false only after it fails to connect using SSL. Suggestions: use other JMX client tool (say jvisualvm or jmc) or enable SSL.
Not using SSL is possible! Use jconsole -debug -J"-Djava.util.logging.config.file=FILENAME"
to see the logged exception. Probably you also need to configure the parameter -Djava.rmi.server.hostname=server.example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With