SlideShare uma empresa 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 !!!

Mais conteúdo relacionado

Destaque

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
 

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

Mais 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
 

Mais 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

Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...itnewsafrica
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 

Último (20)

Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 

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