I currently use jconsole to monitor performance metrics of my Java application and would like to script this data acquisition. Is there a way to retrieve these VM metrics (heap memory usage, thread count, cpu usage, etc) to STDOUT? The data in "top -p PID -b -n 1" doesn't quite cut it.
Thanks