Process (Sql Server) Working Set

Microsoft.Office.Sharepoint.Server.2007.Process_Sql_Server_Working_Set (Rule)

This rule uses the Working Set counter to determine the current size in bytes of the Working Set of this process. The Working Set is the set of memory pages recently touched by the threads in the process. If free memory in the computer is above the rule’s threshold, pages are left in the Working Set of a process even if they are not in use. When free memory falls below the threshold, pages are trimmed from the Working Set. If the pages are needed, they will be soft-faulted back into the Working Set before leaving main memory.

Knowledge Base article:

Summary

This rule uses the Working Set counter to determine the current size in bytes of the working set of this process. The working set is the set of memory pages recently touched by the threads in the process. If free memory in the computer is above the rule’s threshold, pages are left in the working set of a process even if they are not in use. When free memory falls below the threshold, pages are trimmed from the Working Set. If the pages are needed, they will be soft-faulted back into the working set before leaving the main memory.

© 2000-2007 Microsoft Corporation, all rights reserved.

Element properties:

TargetMicrosoft.Office.Sharepoint.Server.2007.MOSS.Server
CategoryPerformanceCollection
EnabledTrue
Instance NameProcess
Counter NameWorking Set
Frequency3600
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.Performance.OptimizedDataProvider Default
CollectData WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
DataWarehousePublishData WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Office.Sharepoint.Server.2007.Process_Sql_Server_Working_Set" Enabled="onEssentialMonitoring" Target="Microsoft.Office.Sharepoint.Server.2007.MOSS.Server" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="MSWL!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Working Set</CounterName>
<ObjectName>Process</ObjectName>
<InstanceName>sqlservr</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>3600</Frequency>
<Tolerance>10</Tolerance>
<ToleranceType>Percentage</ToleranceType>
<MaximumSampleSeparation>2</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CollectData" TypeID="SystemCenter!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="DataWarehousePublishData" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>