メモリ使用率の重大な状態による WMI の再起動

Microsoft.SystemCenter.WMI.PrivateBytes.Critical.Recovery (Recovery)

WMI で使用しているメモリが多すぎる場合に、Taskkill ユーティリティを使用して WMI を再起動させる復元処理です。復元処理の出力には、Taskkill コマンドの出力が表示されます (終了コード 0 は成功を示します)。

Element properties:

TargetMicrosoft.SystemCenter.Agent
MonitorMicrosoft.SystemCenter.WMIPrivateBytes.Monitor
Reset MonitorTrue
RemotableTrue
Timeout300
CategoryCustom
Enabledfalse
AccessibilityInternal

Member Modules:

ID Module Type TypeId RunAs 
TaskKillAllWMI WriteAction Microsoft.SystemCenter.StopWMI.WriteAction Default

Source Code:

<Recovery ID="Microsoft.SystemCenter.WMI.PrivateBytes.Critical.Recovery" Accessibility="Internal" Enabled="false" Target="SCLibrary!Microsoft.SystemCenter.Agent" Monitor="Microsoft.SystemCenter.WMIPrivateBytes.Monitor" ResetMonitor="true" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Custom</Category>
<WriteAction ID="TaskKillAllWMI" TypeID="Microsoft.SystemCenter.StopWMI.WriteAction">
<TaskKillFilter>MEMUSAGE ge 1</TaskKillFilter>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Recovery>