Blocking detector


Job details

Name: Blocking detector
Platform: Sqlserver
Category: Performance
Description: This task collects the size of memory objects that are currently allocated by the SQL Server
Long description: Checks whether there exists any blocked sessions.
Version: 2
Default schedule: 2m
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine =‘NO’ & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
warning_threshold 3 The maximum number of minutes a session can be blocked before a warning is triggered.
alarm_threshold 3 The maximum number of minutes a session can be blocked before an alarm is triggered.

Job Summary

select RTRIM(cast(round(waittime/1000./60.,2) as decimal(16,2))), RTRIM(status), RTRIM(program_name), RTRIM(cmd), RTRIM(loginame) from sysprocesses where blocked!=0 and waittype != 0x0000 order by 1 desc

Job Configuration

Job Execution Logic

Thresholds

Report Structure

Field Name Data Type Description
Details SQL-Type 0 Shows information on blocked sessions reflected in the SQL-type structured output.