title: jconsole (Java 7) on Linux cannot attach to a JVM process but jconsole (Java 6) can
body: <p>When I launch JConsole (version 1.7.0_80-b15) the different local JVM PIDs are displayed but JConsole only can attach to several ones, not to all of them (greyed out).</p>
  
  <p>When I click on an attachable PID, the message <strong><code>Note: The management agent will be enabled on this process</code></strong> is displayed at the bottom of the PID list. When I click on an unattachable PID, the shown message is <strong><code>Note: The management agent is not enabled on this process</code></strong>.</p>
  
  <p>The unattachable JVM process is version 1.7.0_80-b15 and has the following properties as command-line arguments:</p>
  
  <pre><code>-Dcom.sun.management.jmxremote=true
  -Dcom.sun.management.jmxremote.port=6002
  -Dcom.sun.management.jmxremote.authenticate=false
  </code></pre>
  
  <p>But if I launch the Jconsole (1.6.0_24-b07), that same "unattachable" PID is <strong>not greyed out</strong> (no <strong>Note</strong> is shown at the bottom of the PID list, though) and Jconsole has no problem to attach to it.</p>
  
  <p>Why does JConsole v6 run and does JConsole v7 not?</p>