title: How can I monitor memory consumption during webserver stress test?
body: <p>I want to do a stress test on an Apache webserver that I have running on localhost. The test will request the webserver to execute a PHP application that I wrote. I want to see how much memory (RAM) the webserver (and/or the associated PHP process) consumes during the test. Or to see how much it consumed after the test is done.</p>
  
  <p>My OS is Ubuntu 13.10.</p>
  
  <p>I looked at Apache Bench, Apache JMeter, <a href="http://www.joedog.org/siege-home/" rel="nofollow">Siege</a> and httperf. None of them seem to provide such information. At most, I can see some CPU load in httperf (which in most cases is 100 %, so not too relevant).</p>
  
  <p>Is there some tool that can provide me with memory consumption information ? It doesn't have to be a webserver benchmarking tool, could also be another Linux software that runs in parallel with the benchmarking tool. I just think that manually monitoring the test via the <code>top</code> command is kind of innacurate/ammateurish. Thank you in advance.</p>