Application Log Events Generated When You Start Performance Counter Query (296187)
The information in this article applies to:
- Microsoft Windows 2000 Server SP1
- Microsoft Windows 2000 Server SP2
- Microsoft Windows 2000 Advanced Server SP1
- Microsoft Windows 2000 Advanced Server SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Datacenter Server SP2
This article was previously published under Q296187 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
SYMPTOMS
When you are using performance counters in Windows 2000 to collect system data, the following events may be logged in the Application log:
4/11/2001 3:24:09 PM Perflib Error None 1008 N/A ACOMPUTER
"The Open Procedure for service ""PerfDisk"" in DLL ""D:\WINNT\system32\perfdisk.dll"" failed. Performance data for this service will not be available. Status code returned is data DWORD 0. "
4/11/2001 3:24:09 PM Perflib Error None 1008 N/A ACOMPUTER
"The Open Procedure for service ""PerfDisk"" in DLL ""D:\WINNT\system32\perfdisk.dll"" failed. Performance data for this service will not be available. Status code returned is data DWORD 0. "
4/11/2001 3:24:09 PM PerfDisk Error None 2001 N/A ACOMPUTER
Unable to read the disk performance information from the system. Disk performance counters must be enabled for at least one physical disk or logical volume in order for these counters to appear. Disk performance counters can be enabled by using the Hardware Device Manager property pages. Status code returned is data DWORD 0.
These events are logged only if the following conditions exist:
- Your computer is running the program that you are using to collect performance data as a service.
- You have disabled the Logical and Physical Disk performance counters on the computer by using the diskperf -N command or by changing the appropriate registry value that is associated with the counter to disable it.
Note: These events are logged regardless of whether or not the query that you are initiating from the service is collecting data from the disk counters.
CAUSE
These events are logged because when you initially create a performance query, the performance library checks the availability of all counters that are listed in the registry. If a listed counter is not available, an event log entry is logged.
RESOLUTIONWARNING: 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.
To prevent the entries from being logged, use either of the following methods:
Method 1
Enable the Disk Performance Counters: Run the diskperf -y command from a command prompt, and then press ENTER.
Method 2
Prevent the performance library from checking the disk counters by modifying a certain registry key value. You can set this value programmatically through your performance data collection program or statically through by using Regedit or Regedt32. If you set this value statically in the registry, information from the counters will not be available unless you change the key value to 0 or delete the key.
To set the key:
- Click Start, click Run, type regedit, and then click OK.
- Locate and click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfDisk\Performance - Create a new registry DWORD value: On the Edit menu, click New, and then click DWORD.
- Type Disable Performance Counters in the Name box.
- Right-click the Value icon, click Modify, and then type 1 in the value Data box.
- Quit Registry Editor.
Modification Type: | Minor | Last Reviewed: | 1/27/2006 |
---|
Keywords: | kbenv kbprb KB296187 |
---|
|