损坏的性能计数器? [英] corrupted performance counters?
问题描述
preformance柜台都是邪恶的。不使用它们。
如果(PerformanceCounterCategory.Exists(我爱你))//为真
{
PerformanceCounterCategory.Delete(我爱你);
//抛出异常的**配置注册表**键无效
}
在System.Diagnostics.PerformanceCounterLib.RegisterFiles(字符串为arg0,布尔注销)
在System.Diagnostics.PerformanceCounterLib.UnregisterCategory(字符串categoryName)
在System.Diagnostics.PerformanceCounterCategory.Delete(字符串categoryName)
在WindowsFormsApplication1.Program.SetupCategory()
所有我发现是这样的: <一href="http://blogs.msdn.com/b/oanapl/archive/2009/04/24/fix-corrupted-performance-counters.aspx">http://blogs.msdn.com/b/oanapl/archive/2009/04/24/fix-corrupted-performance-counters.aspx (使用LODCTR / R)
和它并不能帮助。因为我不知道文件中,他们谈论。 any1能有什么其他的想法?
PS 我使用Windows XP SP3可能这是问题?我的理解是假设完全支持性能计数器,除非我取消了页面文件。
为了更清楚我的problemis,即时通讯无法卸载我的计数器。
我公司过程中遇到问题的性能计数器越来越腐败的规律。如果它与实际的计数器被损坏的问题,您可以检查损坏的性能计数器方式:
- 将
启动|运行|性能监视器
- 单击OK(确定)
- 点击添加按钮在工具栏上,在右侧面板(+号按钮)
- 确保proformance对象下拉菜单中包含的项目,而不仅仅是数字
%WINDIR%\ SYSTEM32
重命名这3个文件:
-
Perfc009.dat
-
Perfh009.dat
-
Perfi009.dat
D:\ I386
)这是我们已经找到了问题的最佳解决方案。
Preformance counters are EVIL. don't use them.
if(PerformanceCounterCategory.Exists("ILoveYou") ) // is true
{
PerformanceCounterCategory.Delete("ILoveYou");
//throws exception The **configuration registry** key is invalid
}
at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
at WindowsFormsApplication1.Program.SetupCategory()
all I found is this: http://blogs.msdn.com/b/oanapl/archive/2009/04/24/fix-corrupted-performance-counters.aspx (Using LODCTR /R)
and it doesn't help. as i have no idea what file are they talking about. any1 got any other ideas?
PS I use windows xp SP3 may this be the problem? i understand it is suppose to support performance counters fully unless I cancel the page file.
to make this clear my problemis that im unable to UNINSTALL my counters.
My company runs into problems with the performance counters getting corrupt regularly. If it is a problem with the actual counters being corrupt, you can check for corrupted Performance Counters by:
- Going to
start | run | perfmon
- Click OK
- Click on the add button on the toolbar in the right panel ("+" sign button)
- Ensure that the proformance object drop down menu contains items and not just numbers
If the Counters are numbers or Blank:
%windir%\system32
:
-
Perfc009.dat
-
Perfh009.dat
-
Perfi009.dat
D:\I386
)This is the best solution we have found for the issue.
这篇关于损坏的性能计数器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!