170 likes | 194 Views
The X-Factor of the Extended Events Amit Khandelwal. DISCLAIMER.
E N D
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.
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.
Agenda Introduction • Understanding the Mumbo jumbo Demos and Troubleshooting tips Extended Events Vs. Profiler Traces
Introduction Introduced in SQL Server 2008, major over-hauling was done in SQL 2012. Shifting focus from SQL Server Profiler Traces A new mechanism for capturing information about events inside the Database Engine Designed from the ground up with performance as a primary focus
The Jargons Package Events Actions Sessions Targets Predicates
Let’s DEMO It! • The system_health session • Default 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% CPU • Sneak-peek into quick troubleshooting bytes of identifying high CPU consumers and query plans.
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
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
Thank you for Attending Tech Unite!!!