View Currently Executing Requests in a Worker Process (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

When you notice that a worker process is using many resources on your Web server, or requests are taking a long time to process, you can view a list of current requests that are processing in a specific worker process. This information can help you determine where a problem occurs in a specific area of a site or application. For example, you may find that a request for a particular file causes high memory usage; you can then give the information about the site or application to a developer who can optimize the code. For example, you may find that a worker process takes a long time to process requests. You can view which requests are currently processing in the worker process, and then use that information to investigate why a certain request takes so much time to process.

The currently executing request information in IIS Manager returns the following information about requests in a worker process:

  • Site ID. The site identifier (ID) for the specific request.

  • Url. The requested Uniform Resource Locator (URL).

  • Verb. The Hypertext Transfer Protocol (HTTP) verb used in the request.

  • Client IP. The Internet Protocol (IP) address of the client who made the request.

  • State. The current pipeline module state that the request is in.

  • Module Name. The current module that the request is in.

  • Time Elapsed. The period of time the request has been in process.

Prerequisites

For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see Worker Processes and Currently Executing Requests Feature Requirements (IIS 7).

Exceptions to feature requirements

  • None

To view currently executing requests in a worker process

You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.

User Interface

To Use the UI

  1. Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

  2. In the Connections pane, select the server node in the tree.

  3. In Features View, double-click Worker Processes.

  4. Select a worker process from the grid.

  5. Click View Current Requests in the Actions pane.

  6. View the list of requests in the grid.

Command-line

To view a list of currently executing requests, use the following syntax:

appcmd list requests

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).

Configuration

The procedure in this topic affects the following configuration elements:

  • None

For more information about IISĀ 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.

WMI

Use the following WMI classes, methods, or properties to perform this procedure:

  • WorkerProcess.GetExecutingRequests method

For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.