title: cannot run jconsole
body: <p>In my windows XP machine I try to run jconsole like this:</p>
  
  <pre><code>jconsole 2228
  </code></pre>
  
  <p>Here 2228 is the pid of the process(got it from Task Manager).
  The output is:</p>
  
  <pre><code>Unable to attach to 2228: Could not map vmid to user name
  </code></pre>
  
  <p>My java version is 1.5.0_07
  Also tried </p>
  
  <blockquote>
    <p>jps -mlv</p>
  </blockquote>
  
  <p>.
  Output is empty.In tmp folder there is no hsperfdata_.
  Tried the same thing in a linux box with same result.In the linux box I logged in as root.Output of the id command:</p>
  
  <pre><code># id
  uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
  </code></pre>
  
  <p>Output of jps command:</p>
  
  <pre><code>jps -mlv
  28574 sun.tools.jps.Jps -mlv -Dapplication.home=/usr/local/Java/jdk1.5.0_16 -Xms8m
  </code></pre>
  
  <p>One difference with windows box is atleast /tmp/hsperfdata_root exists and permissions are:</p>
  
  <pre><code>drwxr-xr-x   2 root     root      4096 Dec 17 12:52 hsperfdata_root
  </code></pre>
  
  <p>Plz help.
  Regards,
  Subhendu</p>