Disable Performance Counters

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib

Data type

Range

Default value

REG_DWORD

0 | 1

0

Description

Enables and disables the registry-based performance counters on the system.

If the value of this entry is 1, Perflib does not retrieve performance counter data from the registry. As a result, System Monitor and other tools that use the data cannot display it. Instead, when a program requests performance data from the registry, the system returns an error to the program explaining that the Performance Library (Perflib) service is disabled.

Value

Meaning

0

Enables performance counters. Programs can retrieve performance data from the registry.

1

Disables performance counters. Programs cannot retrieve performance data from the registry.

Activation method

To make changes to this entry effective, either restart the Remote Registry Service or restart Windows 2000.

Note Image Note

This entry affects all performance counters on the system. To enable or disable the performance counters for a particular service, use Exctrlst.exe to add Disable Performance Counters to the Performance subkey for the service. Exctrlst.exe is a tool on the Windows 2000 Resource Kit companion CD.

Tip Image Tip

If you cannot display particular performance counters, check the Application Log in Event Viewer for events recorded by Perflib. When Perflib finds a disabling error in a performance counter dynamic-link library (DLL), it records an event in the log. Then it sets the value of Disable Performance Counters to 1 to disable the counters.

Caution Image Caution

If you change the value of this entry to 1, the Performance object and Performance counter lists in System Monitor will be empty. You will not be able to use System Monitor or any tool that uses Performance Library data to monitor your system.

Related Entries

Page Image

DisablePerformanceCounters (Services subkey)