October 22, 2012 at 6:24 am
Does anyone have a good reference for setting up extended events and how to do it to get the info you want? We are using 2008 R2 and are looking to get information about when tempdb grows and what caused it to grow. I believe this will get the growth, but I would like to drill down more and find out why it grew.
CREATE EVENT SESSION tempDBGrowth
ON SERVER
ADD EVENT sqlserver.databases_data_file_size_changed
(
ACTION (sqlserver.database_context)
WHERE database_id = 2)
ADD TARGET package0.asynchronous_file_target
(SET filename = 'c:\xelog.xel', metadatafile = 'c:\xelog.xem')
ALTER EVENT SESSION tempDBGrowth ON SERVER STATE = START
Also, it seems that BOL does not have a great explanation of each action, or I just can't find a detailed explanation for each one. So, really I am just asking for a good reference for Extended Events and any "hints" as to how I can get more detail on the growth here and what query(s) caused it to grow.
Jared
CE - Microsoft
October 22, 2012 at 6:37 am
October 22, 2012 at 7:12 am
And the godfather of Extended Events has an XEvent A Day series of blog posts. Jonathan is frequently a better resource for this stuff than Microsoft.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 22, 2012 at 7:15 am
Grant Fritchey (10/22/2012)
And the godfather of Extended Events has an XEvent A Day series of blog posts. Jonathan is frequently a better resource for this stuff than Microsoft.
Awesome! Thanks Grant, I probably should have started with Jonathan. :hehe:
Jared
CE - Microsoft
October 22, 2012 at 7:15 am
digitalrivers (10/22/2012)
http://www.windowsitpro.com/whitepaper/sql-server/sql-servers-extended-events-notifications-proactively-resolve-performance-issues-142603?code=EPDedQuestDatabasePerformanceWP02_101812%5B/quote%5DThanks, but this just tells me how to set it up for a specific thing and does not help me ti understand XEs.
Jared
CE - Microsoft
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply