Microsoft KB Archive/332156

= Performance monitor stops responding while it enumerates Web service counters =

Article ID: 332156

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Server 1.01
 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q332156





SYMPTOMS
When you add Web service counters for Internet Information Services (IIS) 6.0 to a Performance Monitor log, either by right-clicking the System Monitor details pane and clicking Add Counters or by clicking the plus sign (+) on the tool bar, Performance Monitor may take a long time to enumerate the list of available instances on the server. If you are hosting a very large number of Web sites, Performance Monitor may appear to stop responding (hang).



WORKAROUND
To work around this behavior, use one of the following methods:
 * Collect all counters for each performance object. You can add all counters for the whole Web service or other performance object and only display those that you need.
 * Create a counter log from the command line. You can create a counter log that contains the counters and instances that you need by using two command line utilities that are included in all versions of Microsoft Windows XP and Microsoft Windows Server 2003:
 * Typeperf.exe can be used to display all the counters that are currently available on a particular local or remote computer.
 * Logman.exe can be used to create, start, stop, and schedule performance counter trace logs and collections on local and remote systems.



MORE INFORMATION
To add the Web service object to a log:
 * 1) Click Start, and then click Control Panel.
 * 2) Click Administrative Tools.
 * 3) Click Performance.
 * 4) Double-click Performance Logs and Alerts.
 * 5) Right-click Counter Logs, and then click New Log Settings.
 * 6) Type a name for the log, and then click OK.
 * 7) Click Add Objects.
 * 8) Select the object or objects that you want, click Add, click Close, and then click OK.

To generate a text file on drive C named Webcounters.txt that contains a list of all available counters with instances for the Web service object:  Click Start. Click Run. Type cmd, and then click OK. At the command prompt, type the following, and then press ENTER:

Typeperf –qx “\Web service” –o C:\webcounters.txt



You can use the counters that Typeperf lists and create a counter log by using Logman.exe.

To create a counter log named Mycounters that contains the total files that the Web service receives and the total ISAPI extension requests for the default Web site:  Click Start.</li> Click Run.</li> Type cmd, and then click OK.</li> At the command prompt, type the following, and then press ENTER:

Logman create counter mycounters -c &quot;\Web Service(_Total)\Total Files Received&quot; &quot;\Web Service(Default Web Site)\Total ISAPI Extension Requests&quot;

</li></ol>

The Mycounters counter log appears in the list of counter logs in Performance Monitor and can be started, stopped, or scheduled in the same way as a counter log that is created in Performance Monitor.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="references_section">