title: how to monitor a processes memory usage over time - ubuntu
body: <p>I want to watch a given process in unix over time to see what time memory grows (its a long running job)</p>
  
  <p>I guess I could do</p>
  
  <pre><code>ps -aux | grep PID
  </code></pre>
  
  <p>and run this from cron every 5 minutes, but it seems there should be a better way.</p>
  
  <p>Is there a way I can use sar to do this?</p>