title: Calculating the maximum free store memory consumed by a process
body: <p>I would like to compare the maximum amount of heap a set of processes dynamically allocate. Is there any system command in Linux or any application that automatically does that? Something like a monitoring tool that runs a process and watches for how much memory is consumed by the process.</p>
  
  <p>Unfortunately, the <code>size(1)</code> command only reflects on the <em>text</em> and <em>data</em> memory sections of the process and process accounting reports on the average memory used by the process.</p>