title: Running a java process with remote management enabled
body: <p>I am trying to run a java process and enable remote connections using jconsole. I add the following parameters to the command line (before the main class):</p>
  
  <pre><code>-Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote. authenticate=false
  </code></pre>
  
  <p>using netstat, I see that the jvm is listening on port 9999:</p>
  
  <pre><code>tcp6       0      0 :::9999                 :::*                    LISTEN      16971/java
  </code></pre>
  
  <p>however, when I try to connect with jconsole localhost:9999 I get an error message saying that the connection has failed.</p>
  
  <p>any idea?</p>