title: Grails: Connecting jconsole to local process on specified port
body: <p>I am trying to connect jconsole to a specified port for a local process. I can connect to the local process using the PID but not using the remote option.<br>
  I am using ubuntu 14.04 and JDK 1.7
  This is what I am doing to run my app.</p>
  
  <pre><code>grails  \
  -Dcom.sun.management.jmxremote=true \
  -Dcom.sun.management.jmxremote.port=9999 \
  -Dcom.sun.management.jmxremote.authenticate=false \
  -Dcom.sun.management.jmxremote.ssl=false \
  -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx \
  -Dserver.port=8090 \
  run-app
  </code></pre>
  
  <p><strong>hostname -i</strong> also gives me <strong>xxx.xxx.xxx.xxx</strong></p>