SlideShare une entreprise Scribd logo
1  sur  11
Demystifying SQL Server Memory Dumps

Amit Banerjee
Microsoft Corporation
Blog: www.troubleshootingsql.com
Twitter: @banerjeeamit
Facebook: www.facebook.com/TroubleshootingSQL
Agenda

   When does it happen?
   How can I be notified?
   Where are the files?
   What can I do?
   Who was responsible?
   WHY did it happen?
WHEN does it happen

    Non-yielding scheduler
    Non-yielding resource monitor
    Non-yielding IOCP listener
    Deadlocked Schedulers
    Exceptions/Assertions
    Database Corruption
    Latch Timeout
    Other conditions
3 | 1/7/2012 |   Footer Goes Here
HOW can I be notified


                Alerts on EventIDs

              Use custom FileWatcher
             task on your LOG folders*

             Monitor SQL Errorlogs for
            dump generation messages
WHERE are the files

                    • Default location is LOG folder
       Path



                    • Symptom dump text file
  SQLDumpXXXX.txt



                    • Relevant SQL Errorlog snippet
  SQLDumpXXXX.log



                    • THE mini-dump file
 SQLDumpXXXX.mdmp
WHAT can I do                               Why this
                                           Kolaveri di?




                                               Finally
                                               lets
                              Look at          analyze
                              .txt and         the dump
                              .log files
                 Inspect
                 Windows
                 Event logs
     Check
     SQL
     Errorlogs
WHO was responsible
spid148 Time out occurred while waiting for buffer latch —
type 4, bp 0000000832FE1200, page 3:11234374, stat
0x7c20009, database id: 120, allocation unit id:
72057599731367936, task 0x0000000003C4F2E8 : 0, waittime
300, flags 0x1a, owning task 0x0000000003C129B8.
Continuing to wait.
spid148 **Dump thread – spid = 148, PSS =
0x000000044DC17BD0, EC = 0x000000044DC17BE0
spid148 ***Stack Dump being sent to D:Microsoft SQL
ServerMSSQL.1MSSQLLOGSQLDump0001.txt

spid148 * Latch timeout
spid148 * Input Buffer 84 bytes -
spid148 * DBCC CHECKDB WITH ALL_ERRORMSGS
External dump process returned no errors.
WHY




       Demo !!!
       Time to wake up! 
       It’s time to play with the debugger!
              I have some fancy stuff to show you!
                      Can you even read this?
                               You have good eyesight!!!




9 |
Resources

 Whitepaper: How To Diagnose and Correct Errors
  17883, 17884, 17887 and 17888
 Use the Microsoft Symbol Server to obtain debug symbol
  files: http://support.microsoft.com/kb/311503
 Debugging walkthroughs:
  http://troubleshootingsql.com/category/debugging/
 WinDBG: http://msdn.microsoft.com/en-
  us/windows/hardware/gg463009.aspx
Thank You !!!

Contenu connexe

En vedette

SFCU Annual Report 2010
SFCU Annual Report 2010SFCU Annual Report 2010
SFCU Annual Report 2010jenn6896
 
Sperry Van Ness #CRE National Sales Meeting 8-18-14
Sperry Van Ness #CRE National Sales Meeting 8-18-14Sperry Van Ness #CRE National Sales Meeting 8-18-14
Sperry Van Ness #CRE National Sales Meeting 8-18-14SVN International Corp.
 
Comentários da Petição pró Pizzolato até 648 assinaturas
Comentários da Petição pró Pizzolato até 648 assinaturasComentários da Petição pró Pizzolato até 648 assinaturas
Comentários da Petição pró Pizzolato até 648 assinaturasMarcelo Bancalero
 
HKETA 2017 Annual Book
HKETA 2017 Annual BookHKETA 2017 Annual Book
HKETA 2017 Annual BookDaniel Chun
 
February 2015 MRC Newsletter
February 2015 MRC NewsletterFebruary 2015 MRC Newsletter
February 2015 MRC NewsletterAndrew Rosales
 
Customs and Cross-border measures
Customs and Cross-border measuresCustoms and Cross-border measures
Customs and Cross-border measurespatent_unitedipr
 
Abigail Orozco's Resume
Abigail Orozco's ResumeAbigail Orozco's Resume
Abigail Orozco's ResumeAbigail Orozco
 
Bloomington-Normal 2015 Demographic Profile
Bloomington-Normal 2015 Demographic Profile Bloomington-Normal 2015 Demographic Profile
Bloomington-Normal 2015 Demographic Profile Emily Rego
 
NJFuture Redevelopment Forum 2016 Toth
NJFuture Redevelopment Forum 2016 TothNJFuture Redevelopment Forum 2016 Toth
NJFuture Redevelopment Forum 2016 TothNew Jersey Future
 
Projects and Work Experience
Projects and Work ExperienceProjects and Work Experience
Projects and Work Experiencejvezirian
 
Level 3 DataCentersGlobal
Level 3 DataCentersGlobalLevel 3 DataCentersGlobal
Level 3 DataCentersGlobalJeffrey Briggs
 
Curitiba de antigamente - atualizado
Curitiba de antigamente - atualizadoCuritiba de antigamente - atualizado
Curitiba de antigamente - atualizadoWilmar Santin
 

En vedette (16)

SFCU Annual Report 2010
SFCU Annual Report 2010SFCU Annual Report 2010
SFCU Annual Report 2010
 
Car
CarCar
Car
 
Sperry Van Ness #CRE National Sales Meeting 8-18-14
Sperry Van Ness #CRE National Sales Meeting 8-18-14Sperry Van Ness #CRE National Sales Meeting 8-18-14
Sperry Van Ness #CRE National Sales Meeting 8-18-14
 
Comentários da Petição pró Pizzolato até 648 assinaturas
Comentários da Petição pró Pizzolato até 648 assinaturasComentários da Petição pró Pizzolato até 648 assinaturas
Comentários da Petição pró Pizzolato até 648 assinaturas
 
HKETA 2017 Annual Book
HKETA 2017 Annual BookHKETA 2017 Annual Book
HKETA 2017 Annual Book
 
February 2015 MRC Newsletter
February 2015 MRC NewsletterFebruary 2015 MRC Newsletter
February 2015 MRC Newsletter
 
Customs and Cross-border measures
Customs and Cross-border measuresCustoms and Cross-border measures
Customs and Cross-border measures
 
A Curitiba De Antigamente
A Curitiba De AntigamenteA Curitiba De Antigamente
A Curitiba De Antigamente
 
Abigail Orozco's Resume
Abigail Orozco's ResumeAbigail Orozco's Resume
Abigail Orozco's Resume
 
Debaratiitactcyberterrorimchapter
DebaratiitactcyberterrorimchapterDebaratiitactcyberterrorimchapter
Debaratiitactcyberterrorimchapter
 
Bloomington-Normal 2015 Demographic Profile
Bloomington-Normal 2015 Demographic Profile Bloomington-Normal 2015 Demographic Profile
Bloomington-Normal 2015 Demographic Profile
 
NJFuture Redevelopment Forum 2016 Toth
NJFuture Redevelopment Forum 2016 TothNJFuture Redevelopment Forum 2016 Toth
NJFuture Redevelopment Forum 2016 Toth
 
Projects and Work Experience
Projects and Work ExperienceProjects and Work Experience
Projects and Work Experience
 
Level 3 DataCentersGlobal
Level 3 DataCentersGlobalLevel 3 DataCentersGlobal
Level 3 DataCentersGlobal
 
Curitiba de antigamente - atualizado
Curitiba de antigamente - atualizadoCuritiba de antigamente - atualizado
Curitiba de antigamente - atualizado
 
Introduction to SharePoint 2013 Out of the box Webparts
Introduction to SharePoint 2013 Out of the box WebpartsIntroduction to SharePoint 2013 Out of the box Webparts
Introduction to SharePoint 2013 Out of the box Webparts
 

Plus de Amit Banerjee

The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019Amit Banerjee
 
Azure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQLAzure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQLAmit Banerjee
 
Upgrade your SQL Server like a Ninja
Upgrade your SQL Server like a NinjaUpgrade your SQL Server like a Ninja
Upgrade your SQL Server like a NinjaAmit Banerjee
 
SQL PASS 2017 - Building one million predictions per second using SQL Server ...
SQL PASS 2017 - Building one million predictions per second using SQL Server ...SQL PASS 2017 - Building one million predictions per second using SQL Server ...
SQL PASS 2017 - Building one million predictions per second using SQL Server ...Amit Banerjee
 
Building 1 million predictions per second using SQL-R
Building 1 million predictions per second using SQL-RBuilding 1 million predictions per second using SQL-R
Building 1 million predictions per second using SQL-RAmit Banerjee
 
Troubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress RehearsalTroubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress RehearsalAmit Banerjee
 
Enhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and ReplicationEnhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and ReplicationAmit Banerjee
 
Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2Amit Banerjee
 
AlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting ImprovementsAlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting ImprovementsAmit Banerjee
 
Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja Amit Banerjee
 
Debugging made easier with extended events
Debugging made easier with extended eventsDebugging made easier with extended events
Debugging made easier with extended eventsAmit Banerjee
 
You, SQL Server and PowerShell
You, SQL Server and PowerShellYou, SQL Server and PowerShell
You, SQL Server and PowerShellAmit Banerjee
 
SQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended eventsSQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended eventsAmit Banerjee
 
Slow query bring it on
Slow query bring it onSlow query bring it on
Slow query bring it onAmit Banerjee
 
Performance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual MachinesPerformance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual MachinesAmit Banerjee
 
Provisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL ServerProvisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL ServerAmit Banerjee
 
Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014Amit Banerjee
 
Troubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power ViewTroubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power ViewAmit Banerjee
 
SQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - PowerSQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - PowerAmit Banerjee
 
System health session
System health sessionSystem health session
System health sessionAmit Banerjee
 

Plus de Amit Banerjee (20)

The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019
 
Azure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQLAzure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQL
 
Upgrade your SQL Server like a Ninja
Upgrade your SQL Server like a NinjaUpgrade your SQL Server like a Ninja
Upgrade your SQL Server like a Ninja
 
SQL PASS 2017 - Building one million predictions per second using SQL Server ...
SQL PASS 2017 - Building one million predictions per second using SQL Server ...SQL PASS 2017 - Building one million predictions per second using SQL Server ...
SQL PASS 2017 - Building one million predictions per second using SQL Server ...
 
Building 1 million predictions per second using SQL-R
Building 1 million predictions per second using SQL-RBuilding 1 million predictions per second using SQL-R
Building 1 million predictions per second using SQL-R
 
Troubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress RehearsalTroubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress Rehearsal
 
Enhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and ReplicationEnhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and Replication
 
Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2
 
AlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting ImprovementsAlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting Improvements
 
Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja
 
Debugging made easier with extended events
Debugging made easier with extended eventsDebugging made easier with extended events
Debugging made easier with extended events
 
You, SQL Server and PowerShell
You, SQL Server and PowerShellYou, SQL Server and PowerShell
You, SQL Server and PowerShell
 
SQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended eventsSQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended events
 
Slow query bring it on
Slow query bring it onSlow query bring it on
Slow query bring it on
 
Performance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual MachinesPerformance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual Machines
 
Provisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL ServerProvisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL Server
 
Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014
 
Troubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power ViewTroubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power View
 
SQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - PowerSQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - Power
 
System health session
System health sessionSystem health session
System health session
 

Dernier

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 

Dernier (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 

Demystifying sql memory dumps

  • 1. Demystifying SQL Server Memory Dumps Amit Banerjee Microsoft Corporation Blog: www.troubleshootingsql.com Twitter: @banerjeeamit Facebook: www.facebook.com/TroubleshootingSQL
  • 2. Agenda  When does it happen?  How can I be notified?  Where are the files?  What can I do?  Who was responsible?  WHY did it happen?
  • 3. WHEN does it happen  Non-yielding scheduler  Non-yielding resource monitor  Non-yielding IOCP listener  Deadlocked Schedulers  Exceptions/Assertions  Database Corruption  Latch Timeout  Other conditions 3 | 1/7/2012 | Footer Goes Here
  • 4. HOW can I be notified Alerts on EventIDs Use custom FileWatcher task on your LOG folders* Monitor SQL Errorlogs for dump generation messages
  • 5. WHERE are the files • Default location is LOG folder Path • Symptom dump text file SQLDumpXXXX.txt • Relevant SQL Errorlog snippet SQLDumpXXXX.log • THE mini-dump file SQLDumpXXXX.mdmp
  • 6.
  • 7. WHAT can I do Why this Kolaveri di? Finally lets Look at analyze .txt and the dump .log files Inspect Windows Event logs Check SQL Errorlogs
  • 8. WHO was responsible spid148 Time out occurred while waiting for buffer latch — type 4, bp 0000000832FE1200, page 3:11234374, stat 0x7c20009, database id: 120, allocation unit id: 72057599731367936, task 0x0000000003C4F2E8 : 0, waittime 300, flags 0x1a, owning task 0x0000000003C129B8. Continuing to wait. spid148 **Dump thread – spid = 148, PSS = 0x000000044DC17BD0, EC = 0x000000044DC17BE0 spid148 ***Stack Dump being sent to D:Microsoft SQL ServerMSSQL.1MSSQLLOGSQLDump0001.txt spid148 * Latch timeout spid148 * Input Buffer 84 bytes - spid148 * DBCC CHECKDB WITH ALL_ERRORMSGS External dump process returned no errors.
  • 9. WHY Demo !!! Time to wake up!  It’s time to play with the debugger! I have some fancy stuff to show you! Can you even read this? You have good eyesight!!! 9 |
  • 10. Resources  Whitepaper: How To Diagnose and Correct Errors 17883, 17884, 17887 and 17888  Use the Microsoft Symbol Server to obtain debug symbol files: http://support.microsoft.com/kb/311503  Debugging walkthroughs: http://troubleshootingsql.com/category/debugging/  WinDBG: http://msdn.microsoft.com/en- us/windows/hardware/gg463009.aspx