Collect Process\Private Bytes

Microsoft.SystemCenter.NTService.CollectPrivateBytes (Rule)

This rule collects memory usage for the windows service.

Knowledge Base article:

Summary

The rule collects memory usage for the windows service. The data collected by this rule can be viewed in the console as well as using the generic performance reports. The counter collected by this rule is Process\Private Bytes.

Configuration

By default this rule is disabled. If the service is monitored using the Windows Service template, there will be two overrides created for this rule:

Note:It is recommended to not delete or modify the two overrides described above. If you need to modify the frequency used by this performance collection rule, please use the Window Service template.

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>