問題のパフォーマンスカウンターが有効になっていることを確認します。一部のサーバーで多数のカウンターが無効になっていることがわかりました。
無効になっているカウンターを見つけるためのPowerShellは次のとおりです。
Get-ChildItem HKLM:\SYSTEM\CurrentControlSet\Services\*\Performance |
Where-Object { ($_ | Get-ItemProperty -Name 'Disable Performance Counters' -ea Ignore).'Disable Performance Counters' -eq 1 }
無効になっているすべてのカウンターを再度有効にするために使用したPowerShellは次のとおりです。
Get-ChildItem HKLM:\SYSTEM\CurrentControlSet\Services\*\Performance |
Where-Object { ($_ | Get-ItemProperty -Name 'Disable Performance Counters' -ea Ignore).'Disable Performance Counters' -in @(0,1) } |
Remove-ItemProperty -Name 'Disable Performance Counters' -Verbose -WhatIf
Disable Performance Counters
キー値をに設定する代わりに削除することを選択した0
ため、-in @(0,1)
上記の句を使用しました。
一部のASP.NETカウンターのDisable Performance Counters
値が4
またはに設定されました2
。私はそれらを放っておいた。