How can I pinpoint the memory usage of an application pool by an ASP.NET application

My hosting company imposes a 100 MB limit on application pools (IIS 7.5).

How can I pinpoint the memory usage of my ASP.NET application?

To create some kind of base line, I created an empty ASP.NET MVC 3 application with one controller action, returning the result of the line.

Profiling this application with ANTS has the following results:

Generation 1 - 286.2KB
Generation 2 - 795.4KB
Large Object Heap - 75.63KB
Unused memory allocated to .NET - 1.323MB
Unmanaged - 26.78MB

My concern is that if the application pool restrictions are based on private bytes, then an empty ASP.NET MVC application uses 33 MB of the pool resource. Therefore, my MVC application, which is actually doing something (using 93 MB), easily breaks the "limit".

, , GC.GetTotalMemory, 8 , .

, - MVC 33 ( ), , , .

,

+3
1
  • , , .
  • , ANTS, , .
0

Source: https://habr.com/ru/post/1793244/


All Articles