Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> 電腦軟件教程 >> 服務器技術 >> 關於服務器 >> IIS的W3SVC服務由於性能記數器錯而當機的解決辦法

IIS的W3SVC服務由於性能記數器錯而當機的解決辦法

日期:2017/2/8 10:32:55      編輯:關於服務器

剛剛正在群裡聊得起勁呢,朋友Q我說,近幾天他有一台web服務器訪問不是很快,而且一天當機一次,服務器系統資源占用消耗也並不是很大。當機時出現頁面幾乎打不開的情況。根據pathping 和tracert統計值每一個hop都不大,不存在time out的情況。重起IIS後,速度恢復,但過半天又當了。

因為這台服務器安全一直是我在負責,呵呵,應該不大可能出現被入侵的情況。於是上服務器:
查應用程序日志發現有警告信息如下:
事件類型: 警告
事件來源: Perflib
事件種類: 無
事件 ID: 2003
日期:  2005-11-18
事件:  20:49:08
用戶:  N/A
計算機: SERVER00
描述:
"W3SVC" 服務的性能庫 "C:\WINDOWS\system32\inetsrv\w3ctrs.dll" 的配置信息  同在注冊表中保存的受信任性能庫信息不匹 配。此庫中的函數不會作為受信任函數處理。有關更多信息,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支持中心。

呵呵,找到答案了,是性能記數據器在作怪,呵呵。再Search一下發現:

SYMPTOMSAfter you install Windows 2000 on a drive that uses the FAT or FAT32 file system (that was formatted during the installation process) and install Internet Information Services (IIS) in the same Setup process, event ID 2003 warning messages may appear in the Application event log when you start System Monitor and add counters. This issue does not occur with NTFS drives that do not have a service pack, if the FAT or FAT32 drive is formatted before you run Windows 2000 Setup, or if you add IIS later. The event ID 2003 warning message has the following text:
The configuration information of the performance library "C:\\WINNT\\system32\\w3ctrs.dll" for the "W3SVC" service does not match the trusted performance library information stored in the registry. The functions in this library will not be treated as trusted. //本文來自電腦軟硬件應用網www.45it.com

The configuration information of the performance library "C:\\WINNT\\system32\\infoctrs.dll" for the "InetInfo" service does not match the trusted performance library information stored in the registry. The functions in this library will not be treated as trusted.

The configuration information of the performance library "C:\\WINNT\\system32\\aspperf.dll" for the "ASP" service does not match the trusted performance library information stored in the registry. The functions in this library will not be treated as trusted. RESOLUTIONTo resolve this problem, run the following commands at a command prompt in the %SystemRoot%\\System32 folder to unload and reload the IIS performance dynamic-link libraries (DLLs). After you run these commands, the warning messages are not logged:

unlodctr w3svc
unlodctr msftpsvc
unlodctr asp
unlodctr inetinfo
lodctr w3ctrs.ini
lodctr ftpctrs.ini
lodctr axperf.ini
lodctr infoctrs.ini


將後面(紅色部份)幾條命令編輯成bat或者vbs批處理文件執行一次,網站訪問速度迅速恢復。
後來要觀察一天後,確定訪問頁面難以打開就是因為此問題所致;經過以後幾天觀察,服務器運行穩定。

Copyright © Windows教程網 All Rights Reserved