{"id":5712,"date":"2018-09-13T09:45:58","date_gmt":"2018-09-13T14:45:58","guid":{"rendered":"https:\/\/www.poweradmin.com\/blog\/?p=5712"},"modified":"2018-10-04T16:37:33","modified_gmt":"2018-10-04T21:37:33","slug":"counters-monitoring-cpu-usage","status":"publish","type":"post","link":"https:\/\/www.poweradmin.com\/blog\/counters-monitoring-cpu-usage\/","title":{"rendered":"Counters Monitoring CPU Usage"},"content":{"rendered":"<p><span style=\"color: #000000;\"><strong><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">By Zo\u00eb Dunning<\/span><\/strong><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">This week\u2019s topic is monitoring CPU usage using the <strong>\u201c\\Processor Information(_Total)\\% Processor Time\u201d <\/strong>and <strong>\u201c\\Processor Information(_Total)\\% Processor Queue Length\u201d<\/strong> counters. <\/span><\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\">Overview<\/span><\/h2>\n<p><span style=\"font-family: verdana, geneva, sans-serif; font-size: 14px;\"><strong><span style=\"line-height: 115%;\">\u201c\\Processor Information(_Total)\\% Processor Time\u201d<\/span><\/strong><span style=\"line-height: 115%;\"> shows the percentage of the time that the processor takes to execute a non-idle thread during a sample interval. In other words, this counter shows processor activity. % Processor Time is calculated by subtracting the percentage of time to execute an idle thread from 100%.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif; font-size: 14px;\"><strong><span style=\"line-height: 115%;\">\u201c\\System\\% Processor Queue Length\u201d <\/span><\/strong><span style=\"line-height: 115%;\">corresponds to the number of threads waiting to be processed by any CPU <\/span><span style=\"line-height: 115%;\">(as opposed to Server Work Queue Length, which measures the threads waiting to be processed by a <em>particular<\/em> CPU).<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/09\/processor-time-and-queue-length.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5714\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/09\/processor-time-and-queue-length-300x227.gif\" alt=\"\" width=\"400\" height=\"303\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/09\/processor-time-and-queue-length-300x227.gif 300w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/09\/processor-time-and-queue-length-768x581.gif 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\"><\/a><\/p>\n<p>\u00a0<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #0000ff; font-family: verdana, geneva, sans-serif; font-size: 14px;\">Dark blue<\/span><span style=\"font-family: verdana, geneva, sans-serif; font-size: 14px;\">= % Processor Time<\/span><span style=\"color: #0000ff; font-family: verdana, geneva, sans-serif; font-size: 14px;\"><span style=\"color: #000000;\">; <span style=\"color: #00ccff;\">Light blue<\/span><\/span><\/span><span style=\"font-family: verdana, geneva, sans-serif; font-size: 14px;\">=\u00a0<\/span><span style=\"font-family: verdana, geneva, sans-serif; font-size: 14px;\">%\u00a0Processor Queue Length<\/span><\/p>\n<p>\u00a0<\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\">Potential Problems<\/span><\/h2>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">Similar to the issues encountered with Current and Average Disk Queue Length, the processor\u2014like the disk queue and memory\u2014can become bottlenecked. A processor bottleneck occurs when threads require more processor time than is available.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">% Processor Time won\u2019t necessarily be high if % Processor Queue Length is high. A consistently high rate of CPU usage for % Processor Time\u2014in the range of 80% to 90%\u2014could be a problem. Monitor each % Processor Time counter for each individual processor if you have a multiprocessor system.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">However, if you have a SQL server that executes numerous calculations, 100% of the processor\u2019s time can be used without a bottleneck occurring. However, monitor this closely to catch if the performance of other applications and functions begin to suffer. <\/span><\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\">Troubleshooting<\/span><\/h2>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">If you notice a steadily high rate of CPU usage in the 80% to 90% range, you may need to upgrade your CPU. Install a faster processor if you have more than a couple of processes simultaneously trying to use processor time, resulting in a bottleneck. If you have a multiprocessor system, you can also add more processors.<\/span><\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\">Conclusion<\/span><\/h2>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">\u201c\\Processor Information(_Total)\\% Processor Time\u201d shows processor activity by displaying the percentage of the time that the processor takes to execute a non-idle thread. \u201c\\System\\% Processor Queue Length\u201d corresponds to the number of threads waiting to be processed by any CPU.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">To avoid processor bottleneck, monitor your % Processor Time counter for unusually high rates of CPU usage. Typically, 80% to 90% of CPU usage is problematic unless you have a SQL server that can manage multiple calculations simultaneously. In that case, 100% of the processor time should be able to be used.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-size: 14px; line-height: 115%; font-family: verdana, geneva, sans-serif;\">If you notice a steadily high rate of CPU usage in the 80% to 90% range, you may need to upgrade your CPU by installing a faster processor or adding a new one if you have a multiprocessor system.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Zo\u00eb Dunning \u00a0 This week\u2019s topic is monitoring CPU usage using the \u201c\\Processor Information(_Total)\\% Processor Time\u201d and \u201c\\Processor Information(_Total)\\% Processor Queue Length\u201d counters. Overview \u201c\\Processor Information(_Total)\\% Processor Time\u201d shows the percentage of the time that the processor takes to execute a non-idle thread during a sample interval. In other words, this counter shows processor [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":5859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,57,8],"tags":[63,65,52,59,72,68,56,67,69,64],"class_list":["post-5712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general-it","category-how-to","category-monitoring","category-windows","tag-counters","tag-cpu","tag-how-to","tag-monitoring","tag-percent-processor-queue-length","tag-percent-processor-time","tag-performance-monitor","tag-processor","tag-processor-queue-length","tag-troubleshooting"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/comments?post=5712"}],"version-history":[{"count":5,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5712\/revisions"}],"predecessor-version":[{"id":5856,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5712\/revisions\/5856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media\/5859"}],"wp:attachment":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media?parent=5712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/categories?post=5712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/tags?post=5712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}