PDA

View Full Version : Perflib filling up Application Log (W2K)



msumy
12-13-2002, 07:08 AM
I am trying to disable the performance counters for disk monitoring.

I get the event ID 1008.

I have tried using the diskperf -n at the cmd line with no luck.

I have also added the following key/value in the registry with no sucess:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\DiskPerf\Performace\

with a REG_DWORD of:
Disable Performance Counters=1

If anyone can help, that would be GREAT!

mysterywolf
12-13-2002, 07:17 AM
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.

RESOLUTION
==========

WARNING: Using Registry Editor incorrectly can cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that
problems resulting from the incorrect use of Registry Editor can be solved. Use
Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it. If
you are running Windows NT or Windows 2000, you should also update your
Emergency Repair Disk (ERD).

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
Regedit32. 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:

1. Click Start, click Run, type "regedit" (without the quotation marks), and
then click OK.

2. Locate and click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfDisk\Performance

3. Create a new registry DWORD value: On the Edit menu, click New, and then
click DWORD.

4. Type "Disable Performance Counters" (without the quotation marks) in the Name
box.

5. Right-click the Value icon, click Modify, and then type "1" (without the
quotation marks) in the value Data box.

6. Quit Registry Editor.

msumy
12-13-2002, 01:15 PM
Thanks mysterywolf,

your registry key entry worked. I noticed I was entering the informaition in the wrong key.