<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx</link><description>Jonathan Kehayias and Paul Randall posted more than a year ago great articles on how to monitor historical deadlocks using Extended Events system_health default trace. Both tried to fix on the fly bug in xml output that caused failures in xml validation.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#24972</link><pubDate>Mon, 10 May 2010 02:16:25 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24972</guid><dc:creator>Jonathan Kehayias</dc:creator><description>&lt;p&gt;Michael,&lt;/p&gt;
&lt;p&gt;What is interesting is that you report that an intraquery parallelism deadlock isn't captured by TF 1222, which is contrary to my own experiences recently with that type of deadlock as well as experiences in the past. &amp;nbsp;I know for a fact that in SQL 2005 1222 will output for intraquery parallelism deadlocks, but I have yet to have a problem with them in SQL 2008, mainly because I have changed how I configure my servers for 'max degree of parallelism'. &amp;nbsp;If the TF 1222 didn't capture the deadlock I'd call that a bug and something that should be fixed. &amp;nbsp;The good thing is that the deadlock XML bug in XEvents has been fixed and will be released in Service Pack 2, per the comments on the connect bug which has been closed as fixed.&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#24973</link><pubDate>Mon, 10 May 2010 04:18:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24973</guid><dc:creator>Michael Zilberstein</dc:creator><description>&lt;p&gt;Jonathan,&lt;/p&gt;
&lt;p&gt;Agree with every word - I know that TF 1222 used to catch intra-query parallelism deadlocks, have seen it multiple times on my systems. I'm actually considering opening bug on connect - I wrote my post at ~4:00AM local time, so postponed it to get a little nap :-). &lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#25232</link><pubDate>Mon, 17 May 2010 22:42:57 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25232</guid><dc:creator>Bill</dc:creator><description>&lt;p&gt;I thought SQL 2008 CU1 package fixed that deadlock xml bug. &lt;/p&gt;
&lt;p&gt;Does SQL 2008 SP1 include the fix for that?&lt;/p&gt;
</description></item><item><title>An XEvent a Day (13 of 31) – The system_health Session</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#31597</link><pubDate>Tue, 14 Dec 2010 03:13:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:31597</guid><dc:creator>The Rambling DBA: Jonathan Kehayias</dc:creator><description>&lt;p&gt;Today’s post was originally planned for this coming weekend, but seems I’ve caught whatever bug my kids&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#39276</link><pubDate>Thu, 20 Oct 2011 21:11:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:39276</guid><dc:creator>Scotty Boy</dc:creator><description>&lt;p&gt;Msg 9436, Level 16, State 1, Line 2&lt;/p&gt;
&lt;p&gt;XML parsing: line 5, character 15, end tag does not match start tag&lt;/p&gt;
&lt;p&gt;Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)&lt;/p&gt;
&lt;p&gt;looks to me like the XML file is truncated prematurely&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#42948</link><pubDate>Tue, 24 Apr 2012 10:25:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42948</guid><dc:creator>mark</dc:creator><description>&lt;p&gt;I also get this&lt;/p&gt;
&lt;p&gt;Msg 9436, Level 16, State 1, Line 2&lt;/p&gt;
&lt;p&gt;XML parsing: line 6, character 15, end tag does not match start tag&lt;/p&gt;
&lt;p&gt;any ideas?&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#43674</link><pubDate>Thu, 31 May 2012 17:51:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43674</guid><dc:creator>Eric Zierdt</dc:creator><description>&lt;p&gt;I've just noticed that when I have multiple victimProcess nodes under the victim-list node, that the first one doesn't terminate (no /&amp;gt; at the end, just &amp;gt;) &amp;nbsp;This causes the XML parsing: line 6, character 15, end tag does not match start tag error that people are reporting. &amp;nbsp;Not sure yet if there is a way to catch this and correct it..i'm still working on it...I'm not seeing anyone else discussing this anywhere.&lt;/p&gt;
&lt;p&gt;&amp;lt;deadlock-list&amp;gt; &amp;nbsp;&amp;lt;deadlock&amp;gt;&amp;lt;victim-list&amp;gt; &amp;nbsp; &amp;lt;victimProcess id=&amp;quot;processb8034c8&amp;quot;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;victimProcess id=&amp;quot;process753c508&amp;quot;/&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/victim-list&amp;gt;&amp;lt;process-list&amp;gt; &lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#44130</link><pubDate>Thu, 28 Jun 2012 11:25:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44130</guid><dc:creator>Robert Berndt</dc:creator><description>&lt;p&gt;I also get this&lt;/p&gt;
&lt;p&gt;Msg 9436, Level 16, State 1, Line 2&lt;/p&gt;
&lt;p&gt;XML parsing: line 6, character 15, end tag does not match start tag&lt;/p&gt;
&lt;p&gt;Would love a solution! &lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#45053</link><pubDate>Thu, 06 Sep 2012 15:31:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45053</guid><dc:creator>Igor Santos</dc:creator><description>&lt;p&gt;I'm having the same issue that Eric Zierdt and Robert Berndt are experiencing. &lt;/p&gt;
&lt;p&gt;Msg 9436, Level 16, State 1, Line 2&lt;/p&gt;
&lt;p&gt;XML parsing: line 6, character 15, end tag does not match start tag&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#45382</link><pubDate>Thu, 27 Sep 2012 13:12:34 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45382</guid><dc:creator>M. Duverger</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;I'm having the same issue that Eric Zierdt, Robert Berndt and Igor Santos are experiencing. &lt;/p&gt;
&lt;p&gt;Msg 9436, Level 16, State 1, Line 2&lt;/p&gt;
&lt;p&gt;XML parsing: line 6, character 15, end tag does not match start tag&lt;/p&gt;
&lt;p&gt;Is there any solution yet?&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#46083</link><pubDate>Sun, 11 Nov 2012 02:29:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46083</guid><dc:creator>Lucas Kartawidjaja</dc:creator><description>&lt;p&gt;I also got the same issue. As Eric Zierdt mentioned, the problem is with multiple victimProcess nodes.&lt;/p&gt;
&lt;p&gt;I modified a script that Jonathan Kehayias' wrote on SQL Server Central. The script can be found on: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.lucasnotes.com/2012/11/deadlock-graph-xml-from-extended-events.html"&gt;http://www.lucasnotes.com/2012/11/deadlock-graph-xml-from-extended-events.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hopefully it can be helpful.&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#46226</link><pubDate>Thu, 15 Nov 2012 17:41:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46226</guid><dc:creator>Lorrin Ferdinand</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I would like to get a gauge on what the performance impact of running the xml_deadlock_report query to extract just that event is? &amp;nbsp;I started running one on a system that was multi-core with 64 GBs of RAM and after 2 mins 15 seconds - I killed it. &amp;nbsp;Should it take that long to run?&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#46251</link><pubDate>Fri, 16 Nov 2012 16:01:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46251</guid><dc:creator>Ali</dc:creator><description>&lt;p&gt;Hi Lucas,&lt;/p&gt;
&lt;p&gt;I also get error with your script.&lt;/p&gt;
&lt;p&gt;Msg 9436, Level 16, State 1, Line 1&lt;/p&gt;
&lt;p&gt;XML parsing: line 4, character 15, end tag does not match start tag&lt;/p&gt;
&lt;p&gt;This Deadlock from DMV really not working for me. Not much usefull.&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#46252</link><pubDate>Fri, 16 Nov 2012 18:45:12 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46252</guid><dc:creator>Ali</dc:creator><description>&lt;p&gt;Figured out another way to get information. First select into temp table without converting to XML.&lt;/p&gt;
&lt;p&gt;select XEventData.XEvent.value('(data/value)[1]', 'varchar(max)') as DeadlockGraph&lt;/p&gt;
&lt;p&gt;into tempdb.dbo.deadlock&lt;/p&gt;
&lt;p&gt;FROM&lt;/p&gt;
&lt;p&gt;(select CAST(target_data as xml) as TargetData&lt;/p&gt;
&lt;p&gt;from sys.dm_xe_session_targets st&lt;/p&gt;
&lt;p&gt;join sys.dm_xe_sessions s on s.address = st.event_session_address&lt;/p&gt;
&lt;p&gt;where name = 'system_health') AS Data&lt;/p&gt;
&lt;p&gt;CROSS APPLY TargetData.nodes ('//RingBufferTarget/event') AS XEventData (XEvent)&lt;/p&gt;
&lt;p&gt;where XEventData.XEvent.value('@name', 'varchar(4000)') = 'xml_deadlock_report'&lt;/p&gt;
&lt;p&gt;--Next CAST into xml&lt;/p&gt;
&lt;p&gt;select CAST(deadlockgraph as XML) from tempdb.dbo.deadlock&lt;/p&gt;
</description></item><item><title>re: Parsing Extended Events xml_deadlock_report</title><link>http://sqlblog.com/blogs/michael_zilberstein/archive/2010/05/10/24970.aspx#48129</link><pubDate>Fri, 08 Mar 2013 05:25:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48129</guid><dc:creator>Dali</dc:creator><description>&lt;p&gt;Thanks for nice deadlock report I wonder why there is no db name mentioned in the report?&lt;/p&gt;
</description></item></channel></rss>