I've been trying to make a library that uses the System.Diagnostics.PerformanceCounters to monitor perfmon on a variety of machines in C#. While the system seems to run fine, I've noticed after three weeks or so of polling that I just started receiving the
"Not enough server storage is available to process this command" on Windows Server 2003 machines
which the stack trace identifies as being from:
at System.Diagnostics.PerformanceMonitor.GetData(String item)
at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item)
at System.Diagnostics.PerformanceCounterLib.GetCategories(String machineName)
at System.Diagnostics.PerformanceCounterCategory.GetCategories(String machineName)
The same error occurs when I try hitting System.Diagnostics.Process.GetProcesses().
I can "fix" the issue by restarting the Remote Registry, but it's not really a long term solution since I won't be able to do this going forward on all of the machines.
I've noticed that on the machines that fail, around the time the failure occurs, I start to see warnings in the
View Complete Post