title: java jvisualvm can not see the local JVM processes
body: <p>I stop seeing the local JVM processes in jvisualvm. I definitely have <a href="https://stackoverflow.com/a/17681313/432903">JVM processes running</a> which I can verify with <code>ps</code> command.</p>
  
  <pre><code>$ ps aux | grep java -c
  10
  </code></pre>
  
  <p>Here's empty jvisualvm window,</p>
  
  <p><a href="https://i.stack.imgur.com/8lwQj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8lwQj.png" alt="emprt jvisualvm"></a></p>
  
  <p>I tried adding JMX agent <code>localhost:3333</code> as mentioned in this <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/visualvm/jmx_connections.html" rel="nofollow noreferrer">oracle article - Java VisualVM - Connecting to JMX Agents Explicitly</a>. But I get <code>can not connect to localhost:3333 using service:jmx</code></p>
  
  <p>I see the processes in jconsole however.</p>
  
  <p><a href="https://i.stack.imgur.com/kSf0r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kSf0r.png" alt="enter image description here"></a></p>