收集 [處理程序\私用位元組]

Microsoft.SystemCenter.NTService.CollectPrivateBytes (Rule)

此規則會收集 Windows 服務的記憶體使用量。

Knowledge Base article:

摘要

此規則會收集 Windows 服務的記憶體使用量。 此規則收集的資料可在主控台中檢視,也可使用一般效能報表來檢視。 此規則收集的計數器是 [Process\Private Bytes]。

設定

此規則預設為停用。 如果使用 Windows 服務範本來監視服務,則將針對此規則建立下列兩個覆寫:

附註:建議您不要刪除或修改上述兩個覆寫。 如果您需要修改此效能集合規則使用的頻率,請使用 Window 服務範本。

Element properties:

TargetMicrosoft.SystemCenter.OwnProcessNTService
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.NTService.Frequency.RawPerfCounterProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToWarehouse WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.NTService.CollectPrivateBytes" Target="Microsoft.SystemCenter.OwnProcessNTService" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.NTService.Frequency.RawPerfCounterProvider">
<ServiceName>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<ObjectName>Process</ObjectName>
<CounterName>Private Bytes</CounterName>
<InstanceProperty>Name</InstanceProperty>
<ValueProperty>PrivateBytes</ValueProperty>
<Frequency>600</Frequency>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToWarehouse" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>