Microsoft KB Archive/332156

From BetaArchive Wiki
Knowledge Base


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:

  1. Click Start.
  2. Click Run.
  3. Type cmd, and then click OK.
  4. 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:

  1. Click Start.
  2. Click Run.
  3. Type cmd, and then click OK.
  4. At the command prompt, type the following, and then press ENTER:

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

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.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For more information about the Typeperf and Logman utilities, see the product documentation for Windows Server 2003. This documentation can also be viewed on the World Wide Web.

For more information about Typeperf.exe, visit the following Microsoft Web site:

For more information about Logman.exe, visit the following Microsoft Web site:

For more information about creating and viewing performance logs, click the following article number to view the article in the Microsoft Knowledge Base:

248345 How to create a log using System Monitor in Windows



For more information about the Web service performance object, click the following article number to view the article in the Microsoft Knowledge Base:

323317 How to create an IIS baseline by using the Web Service object



Additional query words: iis 5 performance slow

Keywords: kbprb kbpending KB332156