首页 > 代码库 > Windows Svr 2008 Ent R2 性能计数器显示不全
Windows Svr 2008 Ent R2 性能计数器显示不全
=============================
问题描述
======
打开perfmon 的时候一直有warning Unable to add these counter: ", 但是我们还是可以看到界面,点击+ 时, 看不到 Memory,PhysicalDisk,Network Interface,Logic Disk, SQL Server。
解决方案
==========
1. 右击cmd, 选择以管理员身份运行,运行以下命令行重建perfmon counter
---------------
lodctr /s:"c:\windows\system32\perf-backup1.ini"
cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R
2. 重启WMI Performance Adapter, Performance Counter DLL Host, Performance Logs & Alerts 服务。
分析过程
=============
1. 日志中有如下报错, 3011&3012 提示perfmon counter 注册表损坏。
Log Name: Application
Source: Microsoft-Windows-LoadPerf
Date: 9/2/2016 2:37:03 PM
Event ID: 3012
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: Amsdb01
Description:
The performance strings in the Performance registry value is corrupted when process Performance extension counter provider. The BaseIndex value from the Performance registry is the first DWORD in the Data section, LastCounter value is the second DWORD in the Data section, and LastHelp value is the third DWORD in the Data section.
Log Name: Application
Source: Microsoft-Windows-LoadPerf
Date: 9/2/2016 2:37:03 PM
Event ID: 3011
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: AMSDB0
Description:
Unloading the performance counter strings for service WmiApRpl (WmiApRpl) failed. The first DWORD in the Data section contains the error code.
Windows Svr 2008 Ent R2 性能计数器显示不全