title: Java VisualVM CPU usage and processor affinity
body: <p>In my experience today, I find that Oracle's Java VisualVM shows cpu usage as a percent of total machine cores, even when the JVM being monitored has a limited process affinity set in the OS. This is in the "monitor" tab. </p>
  
  <p>Limiting the monitored jvm with <code>taskset</code> (on linux, Ubuntu), when the processors allowed to that jvm are near 100% utilization in <code>htop</code>, the cpu percentage shown in VisualVM is clearly equal to the total number of cpus divided by the number of processors allowed to the monitored jvm. The resolution of the scale is therefore inadequate for this case.</p>
  
  <p>Can you confirm you observed the same on other operating systems or in general?</p>
  
  <p>Is there a way to have VisualVM account for only affinity-assigned cores when showing cpu usage?</p>