ASP. NET performance test

Source: Internet
Author: User
From:
Http://weblogs.asp.net/scottgu/archive/2003/02/17/2551.aspx

Thomas Marquardt, one of our developers on ASP. net, recently published an article on msdn about ASP. NET performance monitoring. along with the article are a number of great utilities (all complete with C # source code ).

We developed them internally to help automate diagnosing customer issues with production apps, and they are also used as part of our ASP. net stress testing program (I'll provide more details about our stress lab in a future blog entry ). these source utilities include:

Snap.exe-- A command-line tool for logging performance data for processes.

Httpclient.exe-- A simple client that records time to last byte (TTLB) for HTTP requests.

Errorhandler. dll.This is an ihttpmodule that you can add to the HTTP pipeline to log unhandled exceptions to the event log. it is better to log errors to a SQL Server database (that is what we do in our stress lab -- since it makes reporting against SS hundreds of servers easier ), but the example uses the event log for simplicity.

Qqq.exe-- A command-line tool for stress testing an ASP. NET application. when used in combination with a stress client, such as Homer or act, this tool will attach debuggers to the worker process and monitor certain performance counters. it can be tuned to automatically break into the debuggers when performance degrades.

Qqq is probably my favorite utility -- especially given that its name is complete nonsense. "qqq" stemmed from the fact that Dmitry (Asp. net Dev manager) likes to name all of his test ASP. net pages with those initials, usually under various temporary directories scattered accross his harddrive.

Qqq is usually used in combination with the windbg and CDB debuggers (which you can download from: http://www.microsoft.com/ddk/debugging/installx86.asp ). these debuggers are more appropriate for system level dubugging (versus the vs debugger) in that they have less effect on the process they are attached to (unlike the vs debugger which tends to impact timings within the target process -- making stress investigations harder ).

Qqq is also typically used in conjunction with. net Framework debugger extension we call "SOS. DLL ". strike. DLL was the parent debugger extension we used in V1 of. net Framework -- "SOS. DLL "Affectionately stands for" son of strike ". you can download son of strike at: http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/dnbda/html/dbgch03.asp.

If you are doing hard-core production ASP. NET development, and want to build up an infrastructure for testing and monitoring your web applications, then I 'd definitely recommend spending an hour browsing through the above Code. there are a lot of cool tips/tricks you can pick up and re-use.

Quick update:A few people have pinged me as to how they can get the source to the above utilities. Note that a link to them is in the top article above. The direct URL is: http://download.microsoft.com/download/3/c/8/3c820668-3095-40e2-b462-0bc8a0b6690f/monitoring_tools.exe

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.