程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> C# >> 關於C# >> IIS 的 W3SVC 服務由於性能記數器錯而宕機的解決辦法

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

編輯:關於C#
 

查應用程序日志發現有警告信息如下:
  事件類型: 警告
  事件來源: 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.
  
  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批處理文件執行一次,網站訪問速度迅速恢復。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved