{"id":469,"date":"2012-09-12T23:19:19","date_gmt":"2012-09-12T23:19:19","guid":{"rendered":"\/blogs\/erin\/post\/Customizing-the-Default-Counters-for-Performance-Monitor.aspx"},"modified":"2013-02-01T09:49:34","modified_gmt":"2013-02-01T17:49:34","slug":"customizing-the-default-counters-for-performance-monitor","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/","title":{"rendered":"Customizing the Default Counters for Performance Monitor"},"content":{"rendered":"<p>I am a huge fan of Performance Monitor (PerfMon). Yes, I know, that\u2019s a geeky statement, but I don\u2019t care. There is such a wealth of information available from PerfMon; you can use it to look at performance real-time, or to capture metrics about performance over time.\u00a0 And, the functionality is built in to Windows. It\u2019s there no matter what Windows server you\u2019re working on \u2013 and when you work on a lot of different servers having a tool you can consistently rely on is extremely useful.<\/p>\n<p>But one challenge I had with PerfMon that took me a while to figure out was how to change the default settings. When I start PerfMon, it only shows the % Processor Time counter. Now that\u2019s a useful counter, especially when there\u2019s a performance issue going on, but I also want to look at other counters such as memory utilization and disk latency. When the system is having a problem, I dislike spending an extra minute or two to add all the counters I want to see. I want them to just be there when I open PerfMon.<\/p>\n<p>For those of you running Windows 2008 and higher (and Windows Vista and higher for workstations), there is an easy solution.\u00a0 If you\u2019re on Windows XP or Windows 2003, I have a solution for you, too, it\u2019s just a few extra steps.<\/p>\n<p><span style=\"text-decoration: underline;\">Windows 2008+ and Windows Vista+<\/span><\/p>\n<p>On your local or machine or server, select <b>Start<\/b> | <b>Run<\/b> and then open up Performance Monitor with the \/sys Command-Line option: <b>perfmon \/sys<\/b><\/p>\n<p>This opens Performance Monitor in a stand-alone mode (if you enter just perfmon, you get additional options such as Data Collector Sets and Reports).\u00a0 Within PerfMon, add the counters you want to monitor.\u00a0 You can either click on the green plus (+) to add counters, or right-click in the graph and select <strong>Add Counters\u2026<\/strong>\u00a0 Once you have added the counters, close PerfMon.\u00a0 Trust me.\u00a0 Just close it.<\/p>\n<p>Go back to <strong>Start<\/strong> | <strong>Run<\/strong> and enter <strong>perfmon \/sys<\/strong> again.\u00a0 The counters you added should be selected.\u00a0 Running Process Monitor on my machine showed that PerfMon saved a configuration file (Perfmon.PerfmonCfg) in Users\\&lt;username&gt;\\AppData\\Local.\u00a0 The location <em>may<\/em> vary depending on OS or roaming profiles (if you cannot find it, simply run Process Monitor and filter on perfmon.exe to find where it writes the file).<\/p>\n<p>You can take this one step further by creating multiple .PerfmonCfg files \u2013 and they can be stored anywhere.\u00a0 Once you have selected the counters in PerfMon, select <strong>File<\/strong> | <strong>Save Settings As\u2026<\/strong> and create a new .PerfmonCfg file with the appropriate name, either locally or in a share.\u00a0 Modify the counters as needed, then save the configuration as a different .PerfmonCfg file.\u00a0 When you want to launch PerfMon for a specific .PerfmonCfg file, just double-click on the file.\u00a0 A great benefit of the different files is that you can share them between servers.\u00a0 However, take note of how you add the counters.\u00a0 If you add a counter for a specific drive letter that doesn\u2019t exist on every server, the counter will appear in the list, but no data will appear in the graph.<\/p>\n<p><span style=\"text-decoration: underline;\">Windows 2003 and Windows XP<\/span><\/p>\n<p>If you\u2019re still running Windows XP or Windows 2003, don\u2019t despair, I have another method.<\/p>\n<p>On your local or machine or server, open up Performance Monitor (<b>Start<\/b> | <b>Run<\/b>| <b>perfmon<\/b>). Add the counters you want to monitor.\u00a0 Once you have the counters added, right-click again in the graphing area and select <strong>Save As\u2026<\/strong> and save it as a .html file. Then close PerfMon.<\/p>\n<p>Start up PerfMon again, you should see that you only have the % Processor Time counter. Open the .html file you just saved in a text editor. Highlight everything (<strong>CTRL + A<\/strong>) and then copy it (<strong>CTRL + C<\/strong>). Switch back to PerfMon, click in the graph area and paste (<strong>CTRL + V<\/strong>). You can also click on the paste icon in the toolbar. The counters will immediately show up.\u00a0 As with the configuration file, you can create multiple .html files to save locally or share.<\/p>\n<p><span style=\"text-decoration: underline;\">Many routes to the same goal<\/span><\/p>\n<p>Having the ability to open PerfMon with specific counters already selected is one of those little things that just makes my life easier.\u00a0 Because there are usually many different ways to accomplish the same task in Windows (think of how you open Windows Explorer \u2013 do you right-click on the Start button and select <strong>Open Windows Explorer<\/strong>, or do you use <strong>CTRL + E<\/strong>, or something else?), I\u2019m interested to know if there are other methods people have used to get counters to show up by default.\u00a0 Feel free to leave a comment or send me an email if you know of other options.\u00a0 I hope this helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am a huge fan of Performance Monitor (PerfMon). Yes, I know, that\u2019s a geeky statement, but I don\u2019t care. There is such a wealth of information available from PerfMon; you can use it to look at performance real-time, or to capture metrics about performance over time.\u00a0 And, the functionality is built in to Windows. [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Customize the Default Counters in Windows Performance Monitor<\/title>\n<meta name=\"description\" content=\"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.\" \/>\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\/customizing-the-default-counters-for-performance-monitor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Customize the Default Counters in Windows Performance Monitor\" \/>\n<meta property=\"og:description\" content=\"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/\" \/>\n<meta property=\"og:site_name\" content=\"Erin Stellato\" \/>\n<meta property=\"article:published_time\" content=\"2012-09-12T23:19:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-01T17:49:34+00:00\" \/>\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=\"4 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\/customizing-the-default-counters-for-performance-monitor\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/\",\"name\":\"How to Customize the Default Counters in Windows Performance Monitor\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#website\"},\"datePublished\":\"2012-09-12T23:19:19+00:00\",\"dateModified\":\"2013-02-01T17:49:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158\"},\"description\":\"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/erin\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customizing the Default Counters for Performance Monitor\"}]},{\"@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":"How to Customize the Default Counters in Windows Performance Monitor","description":"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.","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\/customizing-the-default-counters-for-performance-monitor\/","og_locale":"en_US","og_type":"article","og_title":"How to Customize the Default Counters in Windows Performance Monitor","og_description":"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.","og_url":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/","og_site_name":"Erin Stellato","article_published_time":"2012-09-12T23:19:19+00:00","article_modified_time":"2013-02-01T17:49:34+00:00","author":"Erin Stellato","twitter_misc":{"Written by":"Erin Stellato","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/","url":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/","name":"How to Customize the Default Counters in Windows Performance Monitor","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#website"},"datePublished":"2012-09-12T23:19:19+00:00","dateModified":"2013-02-01T17:49:34+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/#\/schema\/person\/76170223ffffa1df03fd9be5b66cb158"},"description":"Selecting the relevant SQL Server counters in Windows Performance Monitor can be tedious, but you can set up a default configuration file to make it easier.","breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/erin\/customizing-the-default-counters-for-performance-monitor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/erin\/"},{"@type":"ListItem","position":2,"name":"Customizing the Default Counters for Performance Monitor"}]},{"@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\/469"}],"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=469"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/erin\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}