Page Life Expectancy

Microsoft.SQLServer.2014.DBEngine.PageLifeExpectancyMonitor (UnitMonitor)

2014 資料庫引擎的 Page Life Expectancy (秒)

Knowledge Base article:

摘要

Page Life Expectancy 是指在沒有參考之下,分頁存留在緩衝集區的秒數。Page Life Expectancy 較高就表示系統不必存取硬碟,就能夠在快取中找到所需的資料。

原因

Page Life Expectancy 值非常低可能表示::

系統的記憶體太少

針對 SQL Server 使用所設定的記憶體太少

索引設計不良

解決方式

檢查 I/O 系統以確認負載的處理狀況,如果 PhysicalDisk 物件之 Avg. Disk sec/Read 和 Avg. Disk sec/Write 計數器的值很高 (通常高於 10 毫秒),就表示您的系統可能已超載,或者存在改善查詢和索引的機會。

因為 SQL Server 會同時處理大量資料表,或者使用完整掃描來取代依準則搜尋,所以緩衝集區可能會超載。請檢查 SQL Server:Access Methods:Full Scans/sec 計數器以確認問題。

您可以使用 SQL Server Profiler 並且瀏覽 [效能] 類別目錄中的 [執行程序表統計資料],找出導致完整掃描的應用程式。

可覆寫的參數

名稱

描述

預設值

已啟用

 

產生警示

 

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

300

範例數

指出測量值在違反臨界值多少次之後,才會變更狀態。

6

臨界值

收集的值會與此參數相比。

300

Element properties:

TargetMicrosoft.SQLServer.2014.DBEngine
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.DBEngine.PageLifeExpectancy.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2014: Page Life Expectancy 太低
電腦 "{1}" 上 SQL 執行個體 "{0}" 的 Page Life Expectancy 太低。請參閱 [警示內容] 索引標籤,以取得詳細資料。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.DBEngine.PageLifeExpectancyMonitor" Accessibility="Public" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.DBEngine" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.DBEngine.PageLifeExpectancy.MonitorType" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.DBEngine.PageLifeExpectancyMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Normal" MonitorTypeStateID="Normal" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<Threshold>300</Threshold>
<NumSamples>6</NumSamples>
</Configuration>
</UnitMonitor>