title: Unable to use VisualVM profiler with Maven Jetty plugin
body: <p>I'm attempting to profile a Java 7 application executed using <code>mvn jetty:run</code> with VisualVM 1.3.6.  The CPU shows as unavailable, and the profile tab lists the following error:</p>
  
  <pre><code>WARNING! Class sharing is enabled for this JVM. This can cause problems when profiling the application and eventually may crash it. Please see the VisualVM Troubleshooting Guide for more information and steps to fix the problem: https://visualvm.java.net/troubleshooting.html#xshare.
  </code></pre>
  
  <p>I am able to profile any other application normally.</p>
  
  <p>The VisualVM log shows the following error a number of times:</p>
  
  <pre><code>java.io.IOException: Unable to open socket file: target process not responding or HotSpot VM not loaded
  </code></pre>
  
  <p>Potentially relevant details:<br>
  - OSX 10.8.3<br>
  - Both app and VisualVM running under JDK 1.7u25</p>
  
  <p>I can presume the downvotes are related to the fact that there is a documented bug related to this issue with advice to set <code>Xshare:off</code>, I'll include <a href="http://bugs.sun.com/view_bug.do?bug_id=6497639">this link</a> to the bug report, which lists it as fixed after 1.6u6.  I am running 1.7u25, so this does not apply to me.</p>