损坏的性能计数器?计数器、性能

2023-09-03 15:55:52 作者:出门不带脑瓜仁

preformance柜台都是邪恶的。不使用它们。

 如果(PerformanceCounterCategory.Exists(我爱你))//为真
{
    PerformanceCounterCategory.Delete(我爱你);
    //抛出异常的**配置注册表**键无效
}
 

 在System.Diagnostics.PerformanceCounterLib.RegisterFiles(字符串为arg0,布尔注销)
在System.Diagnostics.PerformanceCounterLib.UnregisterCategory(字符串categoryName)
在System.Diagnostics.PerformanceCounterCategory.Delete(字符串categoryName)
在WindowsFormsApplication1.Program.SetupCategory()
 

所有我发现是这样的: 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          插入Windows XP安装光盘     在浏览到自己的CD驱动器,进入I386文件夹(即 D:\ I386 )     在这里找到这些相同的文件     复制,并从CD背面将其粘贴到System32下     重新启动计算机。     

这是我们已经找到了问题的最佳解决方案。

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: Locate and Rename these 3 files in %windir%\system32: Perfc009.dat Perfh009.dat Perfi009.dat Insert the Windows XP Install CD Browse to their CD drive and into the I386 Folder (i.e. D:\I386) Locate those same files here Copy and Paste them from the CD back into System32 Reboot the computer.

This is the best solution we have found for the issue.