Performance profiling ASP.Net with Web Development Server
This tutorial describes how to performance profile ASP.Net applications tested on Microsoft’s Web Development server.
Performance profiling a service.
Performance profiling an application that is a child process of a service.
Performance profiling an IIS ISAPI DLL.
Performance profiling ASP.Net with IIS.
Performance profiling a child process.
Performance profiling a child process from the command line.
Example Web Application
An example web application to use with this tutorial is in <Performance Validator install directory>\examples\wdsAspnetExample\wdsAspnetExample\.
Load \examples\wdsAspnetExample\wdsAspnetExample\wdsAspnetExample.csproj and build the configurations or build wdsAspnetExample.csproj as part of the examples.sln solution.
Performance profiling the ASP.Net web application
- Choose the Launch > Services > Monitor Web Development Server and ASP.Net… option.
- The Monitor Web Development Server and ASP.Net dialog is displayed.
- Select the web development server you wish to use, and the port number. The defaults are chosen to represent the most recent version installed on your machine.
- Choose the appropriate native/mixed-mode/.Net option to specify which types of code you want to detect performance profile. Mixed-mode is the default, as this collects memory allocation information for all types of code.
- Select the path to the folder containing web application.
- Specify the virtual path that this folder represents. The default is the root of the website: /
- Select a web browser of your choice. For this example we’ll choose firefox.exe.
- Specify the URL that is going to be loaded from the web application. The default is Default.aspx
- When you click OK, Performance Validator will set up everything needed to interact with the Web Development server, the web browser will be started to load the specified URL.
- Performance Validator will instrument your ASP.Net application and start collecting memory allocation data.
The first time you start the web development server you may find that the web browser fails to open the web page because it takes longer to serve the page due to the memory allocation monitoring. If this happens just wait a few seconds then reload the page in the web browser.
Stopping Web Development Server
When you have finished testing your ASP.Net application, you need to stop Web Development Server so that all .Net operations can conclude.
If you had selected Stop WdS when web browser is closed on the Monitor Web Development Server and ASP.Net dialog then you have nothing to do.
Otherwise, choose Launch > Services > Stop Web Development Server
Web Development Server will be requested to stop. This may take 30 seconds or more.
When Web Development Server stops, Performance Validator will finish performance profiling and prepare its final profiling reports.
I’m not getting any memory allocation data. What can I do?
There are a few things to check.
- Check the diagnostics tab. If the NT Service API is working correctly, Performance Validator will have some data. Information on instrumentation failures will be on the diagnostic tab.
- Check the debug information dialog. You can access this from the Tools > DLL Debug Information… menu. This dialog will tell you which DLLs have debug information and which do not. Any DLLs that don’t have debug information you’ll need to ensure that debug information is built for these DLLs and is findable.
You have learned how to use Performance Validator to monitor ASP.Net applications using the Web Development server, and what to look at to diagnose errors if things don’t work first time.