title: Why won't the VisualVM Profiler profile my application?
body: <p>I've created a simple 1 file java application that iterates through a loop, calls some functions, allocates some memory, adds some numbers, etc.  I run that application via eclipse's <code>Run As-&gt;Java Application</code>.  </p>
  
  <p>The running application shows up in Java VisualVM under <code>Local</code>.  </p>
  
  <p>I double click on that application and go to the Profiler tab.  </p>
  
  <p>The default settings are:</p>
  
  <p><code>Start profiling from classes: my.main.package.**</code></p>
  
  <p><code>Do not profile classes: java.*, javax.*,
  sun.*, sunw.*, com.sun.*</code></p>
  
  <p>I click on <code>CPU</code>.  The <code>CPU</code> and <code>Memory</code> buttons gray out.  Nothing happens.</p>
  
  <p>The <code>Status</code> says <code>profiling inactive</code>.</p>
  
  <p>When my application terminates the <code>Status</code> says <code>application terminated</code>.</p>
  
  <p>What am I doing wrong here?  Are there some settings I need to tweak?  Do I need to set a VM flag when I launch my application?</p>