{"id":728,"date":"2015-12-02T12:04:31","date_gmt":"2015-12-02T20:04:31","guid":{"rendered":"http:\/\/3.209.169.194\/blogs\/erin\/?p=728"},"modified":"2018-12-14T09:06:29","modified_gmt":"2018-12-14T17:06:29","slug":"use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/","title":{"rendered":"Use of the C: drive by the Profiler UI and XE Live Data Viewer"},"content":{"rendered":"<p>I had an email from a fellow MVP this week who is in the process of learning Extended Events (hooray!). One question this person had was whether Extended Events had the same issue as Profiler where the C: drive can be heavily used and potentially run out space.<\/p>\n<p>To clarify, with regard to Profiler UI, if you are using the UI to capture events (not a server side trace that writes to a file<em> which is the preferred method<\/em>), the Profiler UI does file caching of events locally when it runs against a SQL Server instance. It also performs caching when reading an existing file. These cached events are stored on the C:\\drive by default, <em>unless you have changed the <strong>User<\/strong> TMP location in Environment Variables <\/em>(Control Panel | System | Edit the system environment variables | Advanced | Environment Variables\u2026 ):<\/p>\n<figure id=\"attachment_730\" aria-describedby=\"caption-attachment-730\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/tmp.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-730 size-large\" src=\"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/tmp-1024x576.jpg\" alt=\"Accesing the User TMP variable\" width=\"1024\" height=\"576\" \/><\/a><figcaption id=\"caption-attachment-730\" class=\"wp-caption-text\">Accesing the User TMP variable<\/figcaption><\/figure>\n<p>Depending on what events you have configured for Profiler, your filter(s), the workload, and how long you run Profiler, you could generate more events than the UI can handle. Therefore, they\u2019ll start buffering to the User TMP location. If you\u2019re not paying attention, you can fill up the C: drive. This can cause applications (including SQL Server) to generate errors or stop working entirely. Not good.<\/p>\n<p>Reference: https:\/\/msdn.microsoft.com\/en-us\/library\/ms174203.aspx<\/p>\n<p>Now, back to the original question. Does the same problem exist for Extended Events? <strong>Only if you\u2019re using the Live Data Viewer.<\/strong>\u00a0 After you have an event session created (you can just use system_health for this example), within Management Studio, go to Management | Extended Events | Sessions, select the session and right-click and select Watch Live Data:<\/p>\n<figure id=\"attachment_729\" aria-describedby=\"caption-attachment-729\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/live-data.jpg\"><img decoding=\"async\" class=\"size-large wp-image-729\" src=\"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/live-data-1024x647.jpg\" alt=\"Using the Live Data Viewer in XE\" width=\"1024\" height=\"647\" \/><\/a><figcaption id=\"caption-attachment-729\" class=\"wp-caption-text\">Using the Live Data Viewer in XE<\/figcaption><\/figure>\n<p>As events are captured, they will show up in the data view. As with the Profiler UI, the number of events that appear will depend on the session configuration and the workload. The Live Data Viewer will only show a maximum of one million (1,000,000) events. Once that number has been exceeded, it will start to cache events to the User TMP location, just like the Profiler UI. And just like the Profiler UI, that can fill up the C: drive if that is still the User TMP location. Note that the Live Data Viewer will automatically disconnect and stop displaying events if the engine determines it\u2019s negatively affecting performance. If the event session\u2019s internal memory buffers fill up and the events cannot be dispatched to the event stream for consumption, the engine will disconnect the UI from the event stream. &#8211;<\/p>\n<p>[More on the viewer if you\u2019re interested: Introducing the Extended Events Reader]<\/p>\n<p>There are two action items for you:<\/p>\n<ol>\n<li>Don\u2019t use the Profiler UI unless it\u2019s a NON-Production environment.\n<ol>\n<li>If you refuse to give up that woobie (name the movie reference) at least change the User TMP location to something other than C:<\/li>\n<\/ol>\n<\/li>\n<li>If you use the Live Data View in Extended Events for event sessions that generate a lot of events, change the User TMP location to something other C:<\/li>\n<\/ol>\n<p>Shout out to Jonathan for a review of this one.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had an email from a fellow MVP this week who is in the process of learning Extended Events (hooray!). One question this person had was whether Extended Events had the same issue as Profiler where the C: drive can be heavily used and potentially run out space. To clarify, with regard to Profiler UI, [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato\" \/>\n<meta property=\"og:description\" content=\"I had an email from a fellow MVP this week who is in the process of learning Extended Events (hooray!). One question this person had was whether Extended Events had the same issue as Profiler where the C: drive can be heavily used and potentially run out space. To clarify, with regard to Profiler UI, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/\" \/>\n<meta property=\"og:site_name\" content=\"Erin Stellato\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-02T20:04:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-14T17:06:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/tmp-1024x576.jpg\" \/>\n<meta name=\"author\" content=\"Erin Stellato\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Erin Stellato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/\",\"name\":\"Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#website\"},\"datePublished\":\"2015-12-02T20:04:31+00:00\",\"dateModified\":\"2018-12-14T17:06:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use of the C: drive by the Profiler UI and XE Live Data Viewer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/\",\"name\":\"Erin Stellato\",\"description\":\"The SQL Sequel\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158\",\"name\":\"Erin Stellato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0c8b485bd54ea26b57e99f79b525f409?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0c8b485bd54ea26b57e99f79b525f409?s=96&d=mm&r=g\",\"caption\":\"Erin Stellato\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/erin\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/author\/erin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/","og_locale":"en_US","og_type":"article","og_title":"Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato","og_description":"I had an email from a fellow MVP this week who is in the process of learning Extended Events (hooray!). One question this person had was whether Extended Events had the same issue as Profiler where the C: drive can be heavily used and potentially run out space. To clarify, with regard to Profiler UI, [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/","og_site_name":"Erin Stellato","article_published_time":"2015-12-02T20:04:31+00:00","article_modified_time":"2018-12-14T17:06:29+00:00","og_image":[{"url":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-content\/uploads\/2015\/12\/tmp-1024x576.jpg"}],"author":"Erin Stellato","twitter_misc":{"Written by":"Erin Stellato","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/","url":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/","name":"Use of the C: drive by the Profiler UI and XE Live Data Viewer - Erin Stellato","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#website"},"datePublished":"2015-12-02T20:04:31+00:00","dateModified":"2018-12-14T17:06:29+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/use-of-the-c-drive-by-the-profiler-ui-and-xe-live-data-viewer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/erin\/"},{"@type":"ListItem","position":2,"name":"Use of the C: drive by the Profiler UI and XE Live Data Viewer"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/erin\/","name":"Erin Stellato","description":"The SQL Sequel","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/erin\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158","name":"Erin Stellato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0c8b485bd54ea26b57e99f79b525f409?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c8b485bd54ea26b57e99f79b525f409?s=96&d=mm&r=g","caption":"Erin Stellato"},"sameAs":["http:\/\/3.209.169.194\/blogs\/erin"],"url":"https:\/\/www.sqlskills.com\/blogs\/erin\/author\/erin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/posts\/728"}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/comments?post=728"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/posts\/728\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/media?parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/categories?post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/tags?post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}