locked
無法為性能庫ASP.NET創建對象 RRS feed

  • 問題

  • 請教大家:

     

    來源:WinMgmt

    類型:警告

    事件ID:40

    事件描述:

    WMI ADAP無法為性能庫ASP.NET創建對象Win32_PerfRawData_ASPNETApplications,原因是返回瞭錯誤0x80041001

     

    服務器為Windows 2003 SP2簡体中文+Exchange 2003簡体中文(前端服務器),該機內存使用每天以近1000M增加,請問如解決?

     

    謝謝!

    2008年7月3日 上午 01:23

解答

  • Dear Customer,

     

    Based on my knowledge, these events are mostly caused by the problem in the counter, or there may be a false-positive return value in the Windows Management Instrumentation (WMI) Performance Library dredger.

     

    I therefore suggest you perform the following suggestions to troubleshoot this behavior.

     

    WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

     

    Try to dredge the computer''s performance libraries again by using the following commands:

     

    "winmgmt /clearadap" (without the quotation marks)

     

    This command clears all WMI-related values from the service''s performance registry key.

    "winmgmt /resyncperf "winmgmt service pid"" (without the quotation marks)

     

    This command registers the computer''s performance libraries with the WMI.

     

    You can find the WMI service PID information on the Process tab of Windows Task Manager.

     

    The performance registry keys for the involved services include the following registry keys:

     

    WbemAdapFileSize

    WbemAdapFileTime

    WbemAdapStatus

     

    NOTE: For more information about the command options that are available with WMI, type  "winmgmt/?" (without the quotation marks) at a command prompt.

     

    Another possible cause for the events may be that the counters are slow to respond due to other activities during startup. You can tune this timeout by adding the value Collect Timeout REG_DWORD 10000 to the appropriate registry location:

     

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\[counterfile]\Performance

     

    Where [counterfile] is the <file name> performance library listed in the error message from Event Viewer.

     

    For example, if the message in Event Viewer is WMI ADAP was unable to process the perfproc.dll performance library due to a time violation in the open function

     

    then the registry key will be:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PerfProc\Performance

     

    Please note that this registry path does not include the file extension (.dll).

     

    If events continue to be logged after you make these changes, change the  WbemAdapStatus value manually to REG_DWORD 0 under the service''s performance registry key, and then increase the ADAPPerflibTimeout value to REG_DWORD 180 in the following registry key:

     

    HKEY_LOCAL_MACHINE\Software\Microsoft\Wbem\CIMOM

     

    NOTE: You must enter all registry changes as decimal values.

     

    In addition, you can disable performance counters for a specific service with the Exctrlst.exe utility from the Windows 2000 Resource Kit. This utility disables the specific counter by adding a registry key similar to the example below. You can add these registry entries under the specific counter entry manually if Exctrlst.exe is not available or desirable.

     

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Spooler\Performance   

                                                                                                           

    Value name: Disable Performance Counters

                                                                                                           

    Value type: REG_DWORD

                                                                                                           

    Value data: 1

     

    Note: You can get this tool from the following URL:

    http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/exctrlst-o.asp

     

    For more information, you can refer to the following article:

     

    266416 How to Troubleshoot WinMgmt-Based Performance Counter Errors

    http://support.microsoft.com/?id=266416

     

    Please let me know the results so that I can provide further assistance on this problem. I am looking forward to your reply.

     

    Thanks & Regards

    Tom Zhang

    2008年7月22日 上午 07:47
    版主

所有回覆

  • Dear Customer,

     

    Based on my knowledge, these events are mostly caused by the problem in the counter, or there may be a false-positive return value in the Windows Management Instrumentation (WMI) Performance Library dredger.

     

    I therefore suggest you perform the following suggestions to troubleshoot this behavior.

     

    WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

     

    Try to dredge the computer''s performance libraries again by using the following commands:

     

    "winmgmt /clearadap" (without the quotation marks)

     

    This command clears all WMI-related values from the service''s performance registry key.

    "winmgmt /resyncperf "winmgmt service pid"" (without the quotation marks)

     

    This command registers the computer''s performance libraries with the WMI.

     

    You can find the WMI service PID information on the Process tab of Windows Task Manager.

     

    The performance registry keys for the involved services include the following registry keys:

     

    WbemAdapFileSize

    WbemAdapFileTime

    WbemAdapStatus

     

    NOTE: For more information about the command options that are available with WMI, type  "winmgmt/?" (without the quotation marks) at a command prompt.

     

    Another possible cause for the events may be that the counters are slow to respond due to other activities during startup. You can tune this timeout by adding the value Collect Timeout REG_DWORD 10000 to the appropriate registry location:

     

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\[counterfile]\Performance

     

    Where [counterfile] is the <file name> performance library listed in the error message from Event Viewer.

     

    For example, if the message in Event Viewer is WMI ADAP was unable to process the perfproc.dll performance library due to a time violation in the open function

     

    then the registry key will be:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PerfProc\Performance

     

    Please note that this registry path does not include the file extension (.dll).

     

    If events continue to be logged after you make these changes, change the  WbemAdapStatus value manually to REG_DWORD 0 under the service''s performance registry key, and then increase the ADAPPerflibTimeout value to REG_DWORD 180 in the following registry key:

     

    HKEY_LOCAL_MACHINE\Software\Microsoft\Wbem\CIMOM

     

    NOTE: You must enter all registry changes as decimal values.

     

    In addition, you can disable performance counters for a specific service with the Exctrlst.exe utility from the Windows 2000 Resource Kit. This utility disables the specific counter by adding a registry key similar to the example below. You can add these registry entries under the specific counter entry manually if Exctrlst.exe is not available or desirable.

     

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Spooler\Performance   

                                                                                                           

    Value name: Disable Performance Counters

                                                                                                           

    Value type: REG_DWORD

                                                                                                           

    Value data: 1

     

    Note: You can get this tool from the following URL:

    http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/exctrlst-o.asp

     

    For more information, you can refer to the following article:

     

    266416 How to Troubleshoot WinMgmt-Based Performance Counter Errors

    http://support.microsoft.com/?id=266416

     

    Please let me know the results so that I can provide further assistance on this problem. I am looking forward to your reply.

     

    Thanks & Regards

    Tom Zhang

    2008年7月22日 上午 07:47
    版主
  • Thanks, Tom

     

    2008年7月23日 上午 03:59
  • Dear Customer,

     

    Thank you for your reply. I will be standing by for your update and am happy to be of further assistance.

     

    Have a great day!

     

    Sincerely,

    Tom Zhang

     

    2008年8月1日 上午 02:41
    版主
  • Tom,問題仍然存在。

     

    謝謝!

    2008年8月2日 上午 12:32