Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Analyzing Deadlocks with SQL Server Profiler

Return to previous page

  • 4/7/2015
  • 9242 Views

Comments

9242 Views

Analyzing Deadlocks with SQL Server Profiler

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 
Using SQL Server Profiler, you can create a trace that records, replays, and displays deadlock events for analysis.

To trace deadlock events, add the Deadlock graph event class to a trace. This event class populates the TextData data column in the trace with XML data about the process and objects that are involved in the deadlock. SQL Server Profiler can extract the XML document to a deadlock XML (.xdl) file which you can view later in SQL Server Management Studio. You can configure SQL Server Profiler to extract Deadlock graph events to a single file that contains all Deadlock graph events, or to separate files. The following article shows how to extract the deadlock data from the profiler trace.

This article has a section entitled "A Brief Profiler Primer" that lays this out in further detail. Note: please take care to run traces for a long period of time (typically at least 24hours) and ensure that you are only capturing the deadlock graph class otherwise the trace will impact of server performance.

Once you have a deadlock graph trace you will want to analysis it - the following blogs contain lots of useful information to help with this:


What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out