SlideShare una empresa de Scribd logo
1 de 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 !!!

Más contenido relacionado

Destacado

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
 

Destacado (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
 

Más 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
 

Más 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
 

Último

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 

Último (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

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