Knowledge Center

Navigate topics

Performance – Blocking View

In SQL Server, blocfiing occurs when one session holds a locfi on a specific resource and a second SPID attempts to acquire a conflicting lock type on the same resource. Typically, the time frame for when the first SPID locks the resource is small.

Long transactions occur when a single session opens a transaction and never commits or rolls back the transaction. When DML operations occur during an open transaction, they might create a lock on a specific resource, thus escalating to a block. In most applications, transactions are quick and should not stay open for long.

Experda tracks transactions longer than 3 minutes and blocks longer than 30 seconds.

Note: The default Experda Agent sample interval for blocking is every 60 seconds. This means that if your block occurred in between samples, it might not appear in the results.

Blocking – Part 1

Legend
1 Total unique blocking sessions found for the selected timeframe
2 Longest blocked session wait period for the selected timeframe.
3 Total long transactions for the selected timeframe.

 

Blocking – Part 2

The blocking details grid shows the tracked blocking and long open transactions for the selected timeframe.

Legend
1 Filter selection defaults to view all types. Other options: Blocking, Open Transactions
2 Main results grid – the blocking/long transactions details table shows in detail the blocking sessions or blocked sessions as a hierarchy. If the block is a blocking type, you can expand the row to see the complete hierarchy of blocked sessions.

Name Description
SPID Blocking/Long transactions session ID
Type Either “Open Transaction”/”Blocking”
Status The last status of the blocked session
Login Name The session’s login
Wait time Total wait time
Start time Query start time
Duration Total lock duration
Query The locking query/batch. Hovering will display the tooltip with some more text. To see the full text, hover on the row and press the “view que­ry” button at the end of the row on the right.
Host The session’s host
Application The calling application
Database The database that was in the context of the session at the time of the block
Last Batch The time of the session’s last query execution

In the example, we can see all the sessions that are blocked and their blocking parents.

Blocking by application

Blocking by application module helps recognize the most troublesome top applications that are causing the most blocks.

Legend
1 Top applications by AVG block time
2 Top application by total block time
3 Top application by total block count

Request a demo

Fill out your details. 

We’ll get back to you soon.

With Experda, database teams trade manual work with automations and replace clunky operations with streamlined workflows.

Contact Sales

Fill out your details. 

We’ll get back to you soon.

Request a Proposal.

Fill out your details. 

We’ll get back to you soon.

Contact us

Fill out your details. 

We’ll get back to you soon.

Need professional DBA services?

Fill out your details. 

We’ll get back to you soon.

With Experda, database teams trade manual work with automations and replace clunky operations with streamlined workflows.

Need professional BI services?

Fill out your details. 

We’ll get back to you soon.

Get help from Experda

Fill out your details. 

We’ll get back to you soon.

Request a demo

Fill out your details. 

We’ll get back to you soon.

This website uses cookies to remember you and improve your experience. To find out more see our Privacy Policy.