Microsoft KB Archive/175658

= How To Gather Information for Effective Troubleshooting of Performance Issues =

Article ID: 175658

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q175658



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
This article explains how to gather information so that Microsoft Support Professionals can troubleshoot performance problems on a computer running Windows NT. Please read all steps as you will be asked to provide information from several tools when contacting a support professional for assistance.



MORE INFORMATION
The basic tool used for troubleshooting performance issues is Performance Monitor. Follow the steps below to prepare for collecting performance information:

Prior to Creating a Performance Monitor Log
 Turn off screen savers permanently.  Click Start, point to Settings, click Control Panel, and then double-click Display. Click the Screen Saver tab, click None, and then click OK.  Disable all non-essential services in the Services tool in Control Panel. For all possible disk issues, enable Diskperf.  Click Start, point to Programs, and then click MS-DOS Command Prompt.</li> Type the command diskperf -y to enable disk counters.

NOTE: Do not use diskperf -YE unless instructed to do so.</li></ol> </li> Document Lanman Server parameters.WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 Run Registry Editor (Regedt32.exe).</li> Go to the following keys in the registry:

NOTE: The above registry keys are one path; they have been wrapped for readability.</li> Write down all values on the right-hand side that are not equal to zero.

-or-

On the Registry menu, click Save Subtree As and then change the file type to Text File and give the file a name.

NOTE: Do not save the file as a *.REG file.</li></ol> </li> If instructed to do so by the support professional, install the SNMP service and Network Monitor Agent and Tools. This procedure will require the Windows NT compact disc or an appropriate share path.

To install on Windows NT 3.51

 In the Main group, double-click Control Panel, and then double-click Network.</li> Click Add Software, select SNMP, and then click OK.</li> Repeat the previous step and select Network Monitor Agent and Tools. Click OK when you receive a prompt to restart the computer.</li></ol>

To install on Windows NT 4.0

 Click Start, point to Settings, click Control Panel, and then double-click Network.</li> Click the Services tab.</li> <li>Click Add.</li> <li>From the list of Network Software, select SNMP and then click OK.</li> <li>Repeat the previous step and select Network Monitor Agent and Tools.</li> <li>Click No when prompted to restart the computer.</li> <li>If there are any service packs installed, reapply the service pack.</li> <li>Click OK when prompted to restart the computer. NOTE: These services install Network Interface, Network Segment, and TCP/IP counters in Performance Monitor.</li></ol> </li></ol>

Creating the Performance Monitor Log
Run Performance Monitor from the following location:
 * 1) Click Start, point to Program, and then click Administrative Tools.

For specific details on creating the Performance Monitor log, please see the following article in the Microsoft Knowledge Base:

150934 How to Create a Performance Monitor Log for NT Troubleshooting

In cases where the User Interface (UI) of the server in question is hanging or not responding, run Performance Monitor from another computer running Windows NT Server or Workstation.

The counters recommended in the article above will change depending on the problem that you are troubleshooting. See the "Recommended Performance Objects" section below or consult the Microsoft support professional for suggested objects to monitor.

Recommended Performance Objects
If you are troubleshooting a performance issue or an issue that looks like a memory leak, the objects that Performance Monitor should log include, but are not limited to, the following:

For memory leaks:

Cache

Memory

Objects

Paging file

Process

Processor

System

Terminal Services (if a Terminal Server)

For all other resource issues, add additional counters:

Logical disk

NBT Connections

Network interface

Physical disk

Redirector

Server

Server work queues

Thread (do NOT capture if a terminal server)

All Terminal Server counters (if a Terminal Server)

All Protocol counters bound to network adapters

In addition, the smaller the update interval, the larger the log file, so check to make certain there is sufficient disk space available on the computer running Performance Monitor.

Allow Performance Monitor to run a minimum of three days unless you have been instructed otherwise.

Do not log off of the computer where you are running Performance Monitor as this will close out Performance Monitor. Minimize Performance Monitor if preferred and if needed lock the screen on this computer.

After Creating the Performance Monitor Log
<ol> <li>Create a Windows NT Diagnostics Report.

<ol style="list-style-type: lower-alpha;"> <li>Click Start, point to Programs, click Administrative Tools, and then double-click Windows NT Diagnostics.</li> <li>On the File menu, click Save Report.</li> <li>Click All Tab in the Scope Set, click Complete in the Detail Level, click File for Destination, and then click OK.</li></ol> </li> <li>Save the System and Application Event Logs.

<ol style="list-style-type: lower-alpha;"> <li>Click Start, point to Programs, click Administrative Tools, and then double-click Event Viewer.</li> <li>On the Log menu, click System. If System is already selected, click Save As. Save the file as System.evt.</li> <li>On the Log menu, click Application.</li> <li>On the Log menu, click Save As. Save the file as Application.evt.</li></ol> </li> <li>Zip the following files into one file using a compression tool.

<ul> <li>Registry file or the written information in a text file.</li> <li>Performance Monitor log (the .log file, not the *.pml file).</li> <li>Windows NT diagnostics report.</li> <li>Event logs: System.evt and Application.evt.</li></ul> </li></ol>

Contact the Microsoft support professional working with you for additional information on sending the zipped file to the engineer.

Additional query words: performance tuning memory leak utilization Perfmon setup

Keywords: kbhowto KB175658

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.