This rule collects memory usage for the windows service.
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.
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:
Set the Enabled property to True for the Windows Service.
Set the Frequency property to the value specified by the user in the Windows Service template.
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.
Target | Microsoft.SystemCenter.OwnProcessNTService |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
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 |
<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>