title: Finding memory usage of multiple App Pools using c#
body: <p>I'm attempting to find how much of each App Pool's memory is being used through c#</p>
  
  <p>This is what I have at the moment:</p>
  
  <pre><code>List&lt;ApplicationPool&gt; pools = new List&lt;ApplicationPool&gt;();
  List&lt;WorkerProcess&gt; processes = new List&lt;WorkerProcess&gt;();
  
  ServerManager serverManager = new ServerManager();
  ApplicationPoolCollection appPools = serverManager.ApplicationPools;
  
  foreach (ApplicationPool pool in appPools)
  {
      pools.Add(pool);
  }
  </code></pre>
  
  <p>This gives me a list of all the App Pools I have running, but none of the properties of the ApplicationPool object give me any information about it's usage or and real-time data.</p>
  
  <p>Have I got completely got the wrong end of the stick?</p>
  
  <p>How do I find out the information I want?</p>
  
  <p>I haven't been able to find a straight answer anywhere, but apologies if this has been answered before.</p>
  
  <p>Cheers</p>