2016 資料庫引擎的 Page Life Expectancy (秒)
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 |
Target | Microsoft.SQLServer.2016.DBEngine | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.SQLServer.2016.DBEngine.PageLifeExpectancy.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2016.DBEngine.PageLifeExpectancyMonitor" Accessibility="Public" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2016.DBEngine.PageLifeExpectancy.MonitorType" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2016.DBEngine.PageLifeExpectancyMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.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>