Thursday, December 20, 2012

Configure most V1 performance counters in one .REG file

Version 2 Counters
The below will not work for version 2 (V2) counters that are registered in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\_V2Providers
  • May require use of UNLODCTR
  • http://msdn.microsoft.com/en-us/library/windows/desktop/aa373172%28v=vs.85%29.aspx

Version 1 Counters
The below works for version 1 (V1) counters that are registered in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services


This will:
- Disable all of the .NET counters
- Disable all of the ASP.NET counters
- Disable MSDTC counters
- Enable Disk counters
- Disable "ServiceModel" counters
- Disable Spooler counters (especially helpful on a Terminal Server, Remote Desktop Server, or Citrix XenApp Server)
- Enable network counters
- Disable Windows Workflow Foundation counters
- If not mentioned, other counters are left at their "default" state

In general, this "cleans up" the PERFMON counter list. Addition of counters (querying the counters) happens a lot faster, both locally and when monitoring remotely.

Edit to taste and enjoy

- - -

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET CLR Data\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET CLR Networking\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET CLR Networking 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET Data Provider for Oracle\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET Data Provider for SqlServer\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NET Memory Cache 4.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\.NETFramework\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ASP.NET\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ASP.NET_2.0.50727\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ASP.NET_4.0.30319\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ASP.NET_64_2.0.50727\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\aspnet_state\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ContentFilter\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ContentIndex\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\IPSec\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ISAPISearch\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC Bridge 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC Bridge 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Outlook\Performance]
"Disable Performance Counters"=dword:00000004

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PerfDisk\Performance]
"Disable Performance Counters"=dword:00000000

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PerfProc\Performance]
"Disable Performance Counters"=dword:00000000

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelEndpoint 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelEndpoint 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelOperation 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelOperation 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelService 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ServiceModelService 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMSvcHost 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMSvcHost 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Spooler\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TapePerf\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TapiSrv\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Performance]
"Disable Performance Counters"=dword:00000000

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Windows Workflow Foundation 3.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Windows Workflow Foundation 4.0.0.0\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WmiApRpl\Performance]
"Disable Performance Counters"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WSRM\Performance]
"Disable Performance Counters"=dword:00000001

No comments:

Post a Comment