MSSQL 2016: 資料庫引擎 Thread Count

Microsoft.SQLServer.2016.DBEngine.ThreadCount.Collection (Rule)

SQL 2016 資料庫引擎執行緒計數效能集合規則

Knowledge Base article:

摘要

MSSQL 2016: 資料庫引擎 Thread Count

這個處理序目前使用中的執行緒數目。指令是處理器的基本執行單位,而執行緒是執行指令的物件。每個執行中的處理序至少都有一個執行緒。

可覆寫的參數

名稱

描述

預設值

快取到期時間

指定工作流程所能使用之快取資訊的留存時間上限。可以省略。

43200

已啟用

啟用或停用該工作流程。

間隔 (秒)

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

900

同步處理時間

使用 24 小時制指定的同步處理時間。將會忽略。

00:18

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.DBEngine.ThreadCount.DataSourceMapped Microsoft.SQLServer.MonitoringAccount
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.DBEngine.ThreadCount.Collection" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.DBEngine.ThreadCount.DataSourceMapped" RunAs="GPMP!Microsoft.SQLServer.MonitoringAccount">
<ServiceName>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</ServiceName>
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SyncTime/>
<CacheExpirationTime>43200</CacheExpirationTime>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>