記憶體每秒頁面數

Microsoft.Windows.Server.2008.OperatingSystem.MemoryPagesPerSecond (UnitMonitor)

監視效能計數器 Memory\MemoryPagesPerSecond

Knowledge Base article:

摘要

系統將記憶體分頁到磁碟並/或從磁碟分頁的速率過高。 這項監視以 “Memory\Pages/sec” 計數器為基礎,而該計數器是導致整個系統延遲這類錯誤的主要指示器。 整體系統效能可能會明顯降低。

Pages/sec 是為了解決硬體分頁錯誤而對磁碟讀寫分頁的速率。

原因

一或多個應用程式正大量佔用記憶體,導致系統必須對磁碟來回分頁資料以滿足需求。

解決方式

若要識別哪些處理程序造成系統的整體記憶體使用率提高,並瞭解分頁速率,請使用效能監視中「處理程序」物件中的下列計數器:

根據進一步調查的結果,解決方式將有所不同且可能包括下列其中一種:

Element properties:

TargetMicrosoft.Windows.Server.2008.OperatingSystem
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Instance NameMemory
Counter NamePages/Sec
Frequency300
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSystem.Performance.ConsecutiveSamplesThreshold
RemotableTrue
AccessibilityPublic
Alert Message
記憶體每秒頁面數過高。
Memory\Pages\sec 效能計數器已超過閾值。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2008.OperatingSystem.MemoryPagesPerSecond" Accessibility="Public" Enabled="true" Target="Server2008!Microsoft.Windows.Server.2008.OperatingSystem" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="SystemPerf!System.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.OperatingSystem.MemoryPagesPerSecond.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters/>
</AlertSettings>
<OperationalStates>
<OperationalState ID="OverThreshold" MonitorTypeStateID="ConditionTrue" HealthState="Warning"/>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Pages/Sec</CounterName>
<ObjectName>Memory</ObjectName>
<InstanceName/>
<Frequency>300</Frequency>
<Threshold>5000</Threshold>
<Direction>greaterequal</Direction>
<NumSamples>12</NumSamples>
</Configuration>
</UnitMonitor>