PerfMon: Where are my counters?
-
If you visit ‘Add Counter’ window in (WinXP) perfmon and select the ‘Memory’ performance object, you see several counters in the list below. Available bytes, Cache bytes and so on. But for some reason my machine (WinXP) shows only one counter in this section. It happens to be ‘Available Mbytes’, only one entry. I have no idea where the others have gone. :( I need to restore the default counters for ‘Memory’ performance object because I am working on a project which reads values of some of the counters I mentioned above. The code always fails on machine throwing an exception ‘instance name xxx is not valid for this counter category’ Can somebody help regarding what I can do to restore default performance counters? :confused: Salil Khedkar [^]
-
If you visit ‘Add Counter’ window in (WinXP) perfmon and select the ‘Memory’ performance object, you see several counters in the list below. Available bytes, Cache bytes and so on. But for some reason my machine (WinXP) shows only one counter in this section. It happens to be ‘Available Mbytes’, only one entry. I have no idea where the others have gone. :( I need to restore the default counters for ‘Memory’ performance object because I am working on a project which reads values of some of the counters I mentioned above. The code always fails on machine throwing an exception ‘instance name xxx is not valid for this counter category’ Can somebody help regarding what I can do to restore default performance counters? :confused: Salil Khedkar [^]
Assuming you're missing counters specific to .NET, does running
lodctr %WINDIR%\Microsoft.NET\Framework\v1.0.3705\CORPerfMonSymbols.ini
at the command prompt help? Regards Senthil _____________________________ My Blog | My Articles | WinMacro -
Assuming you're missing counters specific to .NET, does running
lodctr %WINDIR%\Microsoft.NET\Framework\v1.0.3705\CORPerfMonSymbols.ini
at the command prompt help? Regards Senthil _____________________________ My Blog | My Articles | WinMacroNo these were Windows performance counters (not specific to .NET) The CORPerfMonSymbols are all there. Anyways, thanks man. :rose: Salil Khedkar [^]