损坏的性能计数器? [英] corrupted performance counters?

查看:220
本文介绍了损坏的性能计数器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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,即时通讯无法卸载我的计数器。

解决方案

我公司过程中遇到问题的性能计数器越来越腐败的规律。如果它与实际的计数器被损坏的问题,您可以检查损坏的性能计数器方式:     

        
  1. 启动|运行|性能监视器
  2.     
  3. 单击OK(确定)
  4.     
  5. 点击添加按钮在工具栏上,在右侧面板(+号按钮)
  6.     
  7. 确保proformance对象下拉菜单中包含的项目,而不仅仅是数字
  8.     
如果计数器是数字或空白:          
  • 找到和%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:

    1. Going to start | run | perfmon
    2. Click OK
    3. Click on the add button on the toolbar in the right panel ("+" sign button)
    4. 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.

    这篇关于损坏的性能计数器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆