title: Can jconsole data be retrieved from the command line?
body: <p>I am currently using <code>jconsole</code> to monitor performance metrics of my Java application and would like to <strong>script</strong> this <strong>data acquisition</strong>. </p>
  
  <p>Is there a way to retrieve these VM metrics (heap memory usage, thread count, CPU usage etc.) to <code>STDOUT</code>?<br>
  The data in <code>top -p PID -b -n 1</code> doesn't quite cut it.</p>
  
  <p>Thanks</p>