1 背景
1.1 報(bào)警情況
最近整理筆記,打算全部遷移到EVERNOTE。整理到鎖這一部分,里邊剛好有個(gè)自己記錄下來(lái)的案例,重新整理分享下給大家。
某日中午,收到報(bào)警短信,DB死鎖異常,單分鐘死鎖120個(gè)。
死鎖的xml文件如下:
1 <deadlock-list> 2 <deadlock victim="process810b00cf8"> 3 <process-list> 4 <process id="process810b00cf8" taskpriority="0" logused="0" waitresource="RID: 13:1:1541136:62" waittime="7682" ownerId="3396587959" transactionname="UPDATE" lasttranstarted="2016-01-08T12:03:51.067" XDES="0xa99746d08" lockMode="U" schedulerid="41" kpid="17308" status="suspended" spid="108" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2016-01-08T12:03:51.067" lastbatchcompleted="2016-01-08T12:03:51.067" lastattention="1900-01-01T00:00:00.067" clientapp="Microsoft SQL Server Management Studio - 查詢" hostname="test-server" hostpid="1433"