title: java library to determine cpu and memory used by a program during its execution
body: <p>I want to measure the level of CPU and memory utilisation of a java program, preferably with a GUI and graphs showing exact utilisation levels throughout the period of execution of the program.</p>
  
  <p>Is there a library/framework that does this?  </p>
  
  <p>Also, i would prefer if I could measure such usage for a program(either desktop or web app) that runs on local system or remote machine.</p>