Profiling the Visual Studio Web Server

With JetBrains’ dotTrace and Red Gate Software’s ANTS Profiler, developers can find bottlenecks in their code as well as profile memory usage. Both tools also support tracing the Visual Studio (2005) Web Server out-of-the-box. However, tracing with Visual Studio 2008 Web Server is a little different.


Instead of trying to profile a Web Application started from VS’s web server, profile a new application. Then, when dotTrace or the ANTS profiler ask you what application you want to profile, fill in the following settings.

dotTrace:

Dot Trace

ANTS:

ANTS Profiler

The application is the location of the Visual Studio Web Server. For me, that is C:Program FilesCommon Filesmicrosoft sharedDevServer9.0WebDev.WebServer.EXE

The arguments include the path, port, and vpath switches. The path is the physical path to the Web application. The port number is, obviously, the port on which the web server is run. The vpath is the virtual path or application root in the form in the form of “/…”

So dotTrace and ANTS will start the application, and then you can use a client or tests to interact with the service that either of the profilers started. When you’re done with your profiling session, you can get a snapshot and continue with your day. :)

2 thoughts on “Profiling the Visual Studio Web Server

  1. Pingback: Jetbrains dotTrace: Profiling VS2008 Web Apps « Alex Duggleby’s Palace of Words

  2. I am doing this in dotTrace 3.1. It appears to work, but when I get my snapshot, there isnt any useful information in there like a normal profile.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>