Chapter 32. Instrumentation

Many ASP.NET developers don't just build an application and walk away. They definitely think about how the application will behave after it is deployed. Instrumentation is the task that developers undertake to measure and monitor their ASP.NET applications. Depending on the situation, some instrumentation operations occur at design time, whereas others are ongoing processes that begin at runtime.

ASP.NET 2.0 gives you greater capability to apply instrumentation techniques to your applications. This release of the ASP.NET framework includes new performance counters, the capability to work with the Windows Event Tracing system, new possibilities for application tracing (covered in Chapter 23 of this book), and the most exciting part of this discussion—a new health monitoring system that allows you to log a number of different events over an application's lifetime.

You can monitor a deployed application in several ways. First, you learn how to work with the Windows event log.

Working with the Event Log

When working with Visual Studio 2005, you can use the event log in the Server Explorer of the IDE in a couple of different ways. You can get to the event log section in the Server Explorer by expanding the view of the server you want to work with (by clicking the plus sign next to the server) until you see the Event Logs section. You then have the option to right-click the Event Logs node and select Launch Event Viewer from the list of available options. This ...

Get Professional ASP.NET 2.0 Special Edition 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.