The X-Factor of the Extended Events Amit Khandelwal.

16
The X-Factor of the Extended Events Amit Khandelwal

description

About me: I am currently working as Microsoft SQL Server Support Escalation Engineer. Worked with Beta Teams for SQL Server release and masters SQL Performance, HR-DR technologies and Replication and Engine technologies. Have Authored several internal training materials. Have been speaker at many programs like SQL Server Talks, SQL Server Asia level conference and many others. Current interests in learning and working on SQL Server Azure and other cloud products of Microsoft.

Transcript of The X-Factor of the Extended Events Amit Khandelwal.

Page 1: The X-Factor of the Extended Events Amit Khandelwal.

The X-Factor of the Extended Events

Amit Khandelwal

Page 2: The X-Factor of the Extended Events Amit Khandelwal.

DISCLAIMER

The opinions expressed in this presentation and on the following slides are solely those of the presenter and not necessarily those of Microsoft. Microsoft does not guarantee the accuracy or reliability of the information provided herein.

Page 3: The X-Factor of the Extended Events Amit Khandelwal.

About me:

I am currently working as Microsoft SQL Server Support Escalation Engineer. Worked with Beta Teams for SQL Server release and masters SQL Performance, HR-DR technologies and Replication and Engine technologies. Have Authored several internal training materials. Have been speaker at many programs like SQL Server Talks, SQL Server Asia level conference and many others. Current interests in learning and working on SQL Server Azure and other cloud products of Microsoft.

Page 4: The X-Factor of the Extended Events Amit Khandelwal.

Agenda

Introduction

Understanding the Mumbo jumbo

Demos and Troubleshooting tips

Extended Events Vs. Profiler Traces

Page 5: The X-Factor of the Extended Events Amit Khandelwal.

INTRODUCTION

Page 6: The X-Factor of the Extended Events Amit Khandelwal.

Introduction

Introduced in SQL Server 2008, major over-hauling was done in SQL 2012.

Shifting focus from SQL Server Profiler Traces

Designed from the ground up with performance as a primary focus

A new mechanism for capturing information about events inside the Database Engine

Page 7: The X-Factor of the Extended Events Amit Khandelwal.

THE MUMBO - JUMBO

Page 8: The X-Factor of the Extended Events Amit Khandelwal.

The Jargons

Package Events Actions

Targets Predicates Sessions

Page 9: The X-Factor of the Extended Events Amit Khandelwal.

Extended Events Engine

Page 10: The X-Factor of the Extended Events Amit Khandelwal.

DEMOS AND TROUBLESHOOTING TIPS

Page 11: The X-Factor of the Extended Events Amit Khandelwal.

Let’s DEMO It!

The system_health sessionDefault session run in background and captures some vital information to kick start troubleshooting

Hello MSFT, Is my query “Waiting”?Let’s see how you can find wait_types, wait_resources and wait_times for your slow running queries.

Oh Gosh! It’s 100% CPUSneak-peek into quick troubleshooting bytes of identifying high CPU consumers and query plans.

Page 12: The X-Factor of the Extended Events Amit Khandelwal.

EXTENDED EVENTS VS. PROFILER TRACES

Page 13: The X-Factor of the Extended Events Amit Khandelwal.

Extended events Vs. Profiler traces• Significantly less performance overhead than traces

• The only possibility of tracing new features like FileStream, FileTable, AlwaysOn, ColumnStore, In_Memory OLTP etc.

• Introduction of large number of events as compared to profiler traces.

• Events and Filters can be adapted live - during active session using Extended Events "Watch Live Data" option.

• Easy Automation - can be easily scripted out, easy to do grouping, aggregation, filtering on events etc.

• Directly integrated in Management Studio , & choice of different targets

Page 14: The X-Factor of the Extended Events Amit Khandelwal.

14

Page 15: The X-Factor of the Extended Events Amit Khandelwal.

15

References

• http://blogs.msdn.com/b/psssql/archive/2009/04/30/why-should-i-use-extended-events-in-sql-server-2008.aspx

• http://blogs.msdn.com/b/extended_events/archive/2010/04/14/introduction-to-extended-events.aspx

• https://www.sqlskills.com/blogs/jonathan/extended-events-overview/

• https://technet.microsoft.com/en-us/library/bb630354(v=sql.105).aspx

• http://blogs.msdn.com/b/extended_events/archive/2010/04/14/introduction-to-extended-events.aspx

• http://channel9.msdn.com/posts/SQL11UPD02-REC-08

Page 16: The X-Factor of the Extended Events Amit Khandelwal.

Thank you for Attending Tech Unite!!!