Skip to content

Commit

Permalink
Merge pull request #472 from erikdarlingdata/dev
Browse files Browse the repository at this point in the history
Update sp_PressureDetector.sql
  • Loading branch information
erikdarlingdata authored Sep 25, 2024
2 parents 810ded3 + edb6559 commit 92e98f5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sp_PressureDetector/sp_PressureDetector.sql
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ OPTION(MAXDOP 1, RECOMPILE);',
THEN N'Query scheduling'
WHEN dows.wait_type = N'THREADPOOL'
THEN N'Potential worker thread exhaustion'
WHEN dows.wait_type = N'RESOURCE_GOVERNOR_IDLE'
THEN N'Potential CPU cap waits'
WHEN dows.wait_type = N'CMEMTHREAD'
THEN N'Tasks waiting on memory objects'
WHEN dows.wait_type = N'PAGELATCH_EX'
Expand Down Expand Up @@ -634,6 +636,8 @@ OPTION(MAXDOP 1, RECOMPILE);',
THEN N'Potential Availability Group Issues'
WHEN dows.wait_type = N'HADR_GROUP_COMMIT'
THEN N'Potential Availability Group Issues'
WHEN dows.wait_type = N'WAIT_ON_SYNC_STATISTICS_REFRESH'
THEN N'Waiting on sync stats updates (compilation)'
END,
hours_wait_time =
CASE
Expand Down Expand Up @@ -717,6 +721,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
/*CPU*/
N'SOS_SCHEDULER_YIELD',
N'THREADPOOL',
N'RESOURCE_GOVERNOR_IDLE',
/*tempdb (potentially)*/
N'PAGELATCH_EX',
N'PAGELATCH_SH',
Expand All @@ -743,7 +748,9 @@ OPTION(MAXDOP 1, RECOMPILE);',
N'BTREE_INSERT_FLOW_CONTROL',
/*Availability Group*/
N'HADR_SYNC_COMMIT',
N'HADR_GROUP_COMMIT'
N'HADR_GROUP_COMMIT',
/*Stats/Compilation*/
N'WAIT_ON_SYNC_STATISTICS_REFRESH'
)
/*Locking*/
OR dows.wait_type LIKE N'LCK%'
Expand Down

0 comments on commit 92e98f5

Please sign in to comment.