title: Why ASP Net Core 2.2 do not release memory?
body: <p>I'm testing ASP Net Core 2.2 using default project made from:</p>
  
  <p>Visual Studio > File > New > Project > ASP NET Core Web Application > Next > Create.
  Press <strong>IIS Express</strong> button on interface and automatically go to <a href="https://localhost:44356/api/values" rel="noreferrer">https://localhost:44356/api/values</a></p>
  
  <p><strong>Edit</strong>: The point is, I'm testing ASP Net Core in case of brute force spamming from people.</p>
  
  <p>I have only modified this:</p>
  
  <pre><code>        [HttpGet]
          public ActionResult&lt;IEnumerable&lt;string&gt;&gt; Get()
          {
              return new string[] { "value1", "value2" };
          }
  </code></pre>
  
  <p><strong>Edit</strong>: to this, I edited my code to reasonable test, producing minimal reproducable example</p>
  
  <pre><code>// GET api/values
  
  [HttpGet]
  public ActionResult&lt;IEnumerable&lt;Post&gt;&gt; Get()
  {
      // Testing for brute force
      return Enumerable.Range(0, 100).Select(x =&gt; "Example Value").ToList();
  }
  </code></pre>
  
  <p>The starting Process Memory is 80 MB.</p>
  
  <p>However, when I tried refreshing the page, the starting memory keeps coming up: 
  <a href="https://i.stack.imgur.com/NPubs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NPubs.png" alt="edited test"></a></p>
  
  <p>Edit: Turns out this issue has been there from 2 years ago, with no solution, and with <strong>Real Life Example Experience</strong>,
  <a href="https://github.com/aspnet/AspNetCore/issues/1976" rel="noreferrer">https://github.com/aspnet/AspNetCore/issues/1976</a></p>
  
  <p>I'm pretty sure that yellow arrow means GC is working correctly, but my process memory usage isn't coming down every request.
  I'm not sure if this is a feature or bug from ASP Net Core, I expected it to go down after request / did not increase everytime a user GET the /values</p>
  
  <p><strong>Edit</strong>: I don't want people dangerously spamming my app and it starting to crash down because memory leak. And I'm afraid to use Net Core for my company if this solution is not fixed yet.</p>
  
  <p>Why ASP Net Core 2.2 do not release memory?</p>
  
  <p>I have tried testing in two different laptop, the result is same.</p>
  
  <p><strong>Edit</strong>: My colleague also have this problem.</p>
  
  <p><strong>Edit</strong>: I have tried using dot net core v2.1, the result is same.</p>
  
  <p>I have tried GCCollect(); the result is same.</p>
  
  <p>old image ref.</p>
  
  <p><a href="https://i.stack.imgur.com/Fdr7t.png" rel="noreferrer">Starting Process Memory</a></p>
  
  <p><a href="https://i.stack.imgur.com/2yBkR.png" rel="noreferrer">Process Memory keeps coming up</a></p>