title: Connection failed:Retry? Jconsole
body: <p>I am unable to connect to jconsole in mac using localhost:9999 it says Secure    connection failed. Retry insecurely? But when i select insecure connection. It    says connection failed:retry?.</p>
  
  <pre><code>Added following in bash_profile and setenv.sh of tomcat 8.
  -export JAVA_OPTS="-Dcom.sun.management.jmxremote 
  -Dcom.sun.management.jmxremote.port=9999 
  -Dcom.sun.management.jmxremote.authenticate=false 
  -Dcom.sun.management.jmxremote.ssl=false
  -Djava.rmi.server.hostname=10.102.15.224"
  </code></pre>
  
  <p>It says same thing for local processes also.</p>