SQL Dump Analysis & Troubleshooting

When SQL experiences a serious issue it will often dump the contents of its memory to disk. This is known as a memory dump or crash dumps.

Default file location of dumps in SQL Server:
By defaultDump directory is located at 'C:\Microsoft SQL Server\MSSQL15. MSSQLSERVER\MSSQL\LOG\' in Windows system.
If you want to change the dump directory of SQL Server dump files (.mdmp extension) from the default location. You can do this using “SQL Server Configuration Manager”
  1. Start SQL Server Configuration Manager
  2. Right Click on SQL Server Instance and select Properties
  3. Go to Advanced Tab and change Dump Directory

sys.dm_server_memory_dumps


It contains the information about memory dumps files generated by the SQL Server Database Engine. It returns 3 columns listed as below:

SELECT *
FROM sys.dm_server_memory_dumps

Analyzing Dump Files using WinDBG:

WinDBG (Windows DeBuGger) is an analytic tool used for analysing and debugging Windows crash dumps, also known as BSODs (Blue Screens of Death). It is free to download from Microsoft and is used by the vast majority of debuggers.
WinDBG requires .NET Framework 4.6 in order to run.

We have two dump files from SQL Server:

Open dump file using WinDBG:

File 1:
Launch Windbg and Choose File menu and then open the crash dump file SQLDump0014.mdump

Click on !analyze -v to get more detailed information about dump file:


Non-Yielding IOCP Listener means that the thread that handles the IO completion routines took a long time doing something, and may stuck or hung.

Solution:
  • Install latest Cumulative Updates for SQL Server.
  • Identify the .dll and verify with the vendor what it was doing.
  • Uninstall the application that causes issues.
  • Restart Operating System & Application.
------------------------------------------------------------------------------
File 2: 
Open the crash dump file SQLDump0019.mdump

Click on !analyze -v to get more detailed information about dump file:

Non-yielding resources usually mean that something pre-emptive was executing which could be CLR, an XP, a OLE Automation Call, or it could be a real bug in SQL Server, that you've happened upon in your configuration.
This means that there is a background thread that keeps running and making other worker threads yielding back, in time.
Resolution:
  • Install cumulative update of SQL Server.
  • Another solution is to apply patch.

Reference:
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-server-memory-dumps-transact-sql?view=sql-server-ver15

https://support.microsoft.com/en-in/help/4048942/fix-stalled-iocp-listener-and-non-yielding-iocp-listener-memory-dumps
Name

Azure Backup Database Clustering Crash Dumps DBCC Deadlock Link Server Log Shipping Maintenance Migration Mirroring Monitoring Performance Tuning Permissions Post Installations Prerequisites Replication Restore Database SQL Installations SQL on Linux SQL Uninstallations SSIS T-SQL Windows Server
false
ltr
item
hybriddba.blogspot.com: SQL Dump Analysis & Troubleshooting
SQL Dump Analysis & Troubleshooting
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZjiXbB6-gDP3oGYnURZyL9ZpZM0KxedrfRk_tnTlGzuJAjGGuPLw_LQoPfqx3F0nNPuytoM8bZNwgcAecF_4oxyILn5eHMprmyB9YuPtOW0in7m2eSFY4Y2ery_yEtlK2mOqhgmKwZXhE/s1600/1579439235120022-0.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZjiXbB6-gDP3oGYnURZyL9ZpZM0KxedrfRk_tnTlGzuJAjGGuPLw_LQoPfqx3F0nNPuytoM8bZNwgcAecF_4oxyILn5eHMprmyB9YuPtOW0in7m2eSFY4Y2ery_yEtlK2mOqhgmKwZXhE/s72-c/1579439235120022-0.png
hybriddba.blogspot.com
https://hybriddba.blogspot.com/2020/01/sql-dump-analysis-troubleshooting.html
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/2020/01/sql-dump-analysis-troubleshooting.html
true
7679493960263860249
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy