title: possible to output current CPU and MEM usage via ruby script ? i am trying to find memory leaks
body: <p>is it possible to, say, output the current consumption of CPU and memory in ruby script?</p>
  
  <p>i am trying to find memory leaks in my jruby script.</p>
  
  <p>CPU usage keeps going up to 100% until it crashes.</p>