How to profile ASP applications using Performance and Coverage Analysis

0 Likes

Problem:

How to use Performance or Coverage Analysis to profile ASP web applications for IIS\ASP.NET users ?

Resolution:

1. Download and install the latest script debugger.

Microsoft Script Debugger

In case Microsoft changes the website, this link is invalid, do a search for it.

2. Ensure your IIS settings are set for profiling. Although undocumented, ideally you should have the following settings in place:

Visit your Internet Information Services Snap-In in MMC.exe. This snap in is usually located here: c:\winnt\system32\inetsrv\iis.msc.

Once you open the iis.msc snap-in, go to the Default Web Site location, and ensure the settings are:

a. Home Directory Tab:

Application Protection: Low (IIS Process)

Execute Permissions: Scripts and Executables

Make sure that you have Read/Write/Script Source Access rights

b. Web Site Tab:

Connection Timeout: (if you get any timeouts, increase this value to double or triple what is normal for your program).

Now go down to your virtual web site. Right click and go to properties and ensure your settings are like so:

Virtual Directory Tab:

Application Protection: Low (IIS Process)

Execute Permissions: Scripts and Executables

3. Now you want to enable Profiling or Coverage Analysis.

For Visual Studio .NET users:

Navigate to the Tools=>Options settings within the IDE. From there, proceed to the DevPartner options group. To the right you will see an option to "Select Analysis Method". Choose the correct DevPartner feature product, then enable "Collect information about IIS/ASP.NET applications". *Note, this feature will disable the Distributed Analysis feature product.

For Visual Studio 6.0 users:

Open either Coverage Analysis or Performance Analysis from the following Windows menu: Start=>Programs=>Compuware DevPartner Studio. Visit Program=>Settings while inside Coverage or Performance, and you will see the option to "Collect information about IIS/ASP.NET applications". *Note, this feature will disable the Distributed Analysis feature product.

Begin running your web application. Upon termination, you should receive results.

Old KB# 11285
Comment List
Anonymous
Related Discussions
Recommended