Performance Counters Missing

We’ve been running SQL Server 2000 x86 on Windows Server 2003 R2 x64 for some time. While there have been a few issues here and there, monitoring SQL related counters can be troublesome whether you are local or remote.

If you are local to the server when you open up performance monitor you will receive the x64 counters and this won’t help you since your SQL Server is x86. For the 32 bit version just use %SystemRoot%\SysWow64\Perfmon.exe.

If you are remote then you’ll need to make some registry modifications on the server that you are monitoring. You’ll need to modify 2 registry entries to read SysWow64 instead of System32:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
“ImagePath”=”%SystemRoot%\SysWow64\svchost.exe -k regsvc”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry\Parameters]
“ServiceDll”=”%SystemRoot%\SysWow64\regsvc.dll”

Restart the Remote Registry Service and you should be good to go now.

Resources:
http://www.code-magazine.com/articleprint.aspx?quickid=080015&printmode=true
(Maybe you couldn’t run SQL 2000 under a x64 bit OS at the time of this writing)

http://blogs.msdn.com/edglas/archive/2006/09/06/reading-32-bit-counters-on-a-64-bit-machine.aspx

,