title: JMX connection fails with "handshake failed...expected JDWP-Handshake"
body: <p>I'm trying to connect VisualVM to a remote JMX. IntelliJ can connect without hassle, but VisualVM fails with the following in log output:</p>
  
  <pre><code>Listening for transport dt_socket at address: 5005
  Debugger failed to attach: recv failed during handshake: Resource temporarily unavailable
  Debugger failed to attach: handshake failed - received &gt;&lt; - expected &gt;JDWP-Handshake&lt;
  </code></pre>
  
  <p>Here are the JVM properties I'm passing at runtime:</p>
  
  <pre><code>-XX:MaxPermSize=50g -XX:+HeapDumpOnOutOfMemoryError -Xmx50g -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=100.100.100.100 -Dcom.sun.management.jmxremote.port=5006 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
  </code></pre>
  
  <p>Using VisualVM 1.3.9. Not sure why it fails why IntelliJ succeeds. I've tried disabling SSL auth, etc.</p>