MVC 6 application does not free memory after loading image

I am running an MVC 6 application in Visual Studio 2015 RC. When the application launches memory usage levels in debug mode about 100 MB.

Memory usage low

The problem arises when I click on any subsequent link and, therefore, load the view, the memory consumption increases and never drops, which ultimately leads to an exception from memory. The memory usage is shown below after clicking on a very simple contact page about 10 times in a minute or so, each time the memory usage increases slightly and does not fall after 10 minutes, it is still 140 MB.

memory usage high

Code for the contact page controller:

 public IActionResult Settings()
    {
        ViewBag.Message = "Your contact page.";

        return View();
    }

Code to view the contact page:

@{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>

<address>
    One Microsoft Way<br />
    Redmond, WA 98052-6399<br />
    <abbr title="Phone">P:</abbr>
    425.555.0100
</address>

<address>
    <strong>Support:</strong>   <a href="mailto:Support@example.com">Support@example.com</a><br />
    <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>

, 5 6 - .

, , . Ive , , , , , .

memory usage 3

- MVC? , ? - - , , !

+4
1

mvc github , .

app.UseBrowserLink(); Startup.cs( 99 ), .

https://github.com/aspnet/Mvc/issues/2790

+2

All Articles