10.19. Resource Monitoring

Some web servers run many applications within one app pool. If issues occur on an individual site, it can be difficult for an administrator to determine which particular application is having difficulties. ASP.NET 4.0 introduces additional performance counters, allowing you to monitor an individual application's CPU and memory usage.

To utilize this, you must add the appDomainResourceMonitoring setting and set it to Aspnet.config (Aspnet.config is located where the .NET Framework is installed: C:\Windows\Microsoft.NET\Framework\v4.0.21006).

<runtime>
  <appDomainResourceMonitoring enabled="true"/>
</runtime>

When you have added this line, go into perfmon, and you should find that you have access to two new performance ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.