{"id":361,"date":"2016-03-31T16:20:17","date_gmt":"2016-03-31T14:20:17","guid":{"rendered":"http:\/\/blogs.msdn.microsoft.com\/lavanack\/?p=361"},"modified":"2022-05-30T13:51:06","modified_gmt":"2022-05-30T11:51:06","slug":"iis85-cpu-limit","status":"publish","type":"post","link":"https:\/\/laurentvanacker.com\/index.php\/2016\/03\/31\/iis85-cpu-limit\/","title":{"rendered":"Limitation du pourcentage d&rsquo;utilisation CPU pour un application pool sous IIS 8.5 \/ Limiting CPU usage for an application pool in IIS 8.5"},"content":{"rendered":"<div id=\"fr-FR\"><a href=\"#en-US\">English version<\/a><\/div>\n<p>Peut-\u00eatre l&rsquo;avez-vous remarqu\u00e9 (ou pas) mais le champ permettant de rentrer une valeur pour la limitation du CPU pour un application pool a subi une petite \u00e9volution depuis IIS 8.5 (Windows 2012 R2). Auparavant ce champ acceptait une valeur en milli\u00e8me de CPU (quelle granularit\u00e9 !) comme le montre la capture d&rsquo;\u00e9cran ci-dessous. Il fallait donc entrer 30000 pour limiter l&rsquo;utilisation CPU \u00e0 30% (limitation r\u00e9partie entre tous les worker process \/ w3wp.exe servant un application pool).<\/p>\n<p><a href=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-371\" src=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg\" alt=\"iis75cpulimit\" width=\"456\" height=\"51\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg 456w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit-300x34.jpg 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p>Depuis IIS 8.5, la valeur est exprim\u00e9e en pourcentage, il suffit donc d&rsquo;entrer simplement 30 pour 30% comme l&rsquo;atteste la capture d&rsquo;\u00e9cran ci-dessous :<\/p>\n<p><a href=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" src=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg\" alt=\"iis85cpulimit\" width=\"389\" height=\"47\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg 389w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit-300x36.jpg 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/a><\/p>\n<p>Si vous vous d\u00e9sirez aller plus loin sur le <a href=\"http:\/\/www.iis.net\/learn\/get-started\/whats-new-in-iis-8\/iis-80-cpu-throttling-sand-boxing-sites-and-applications\" target=\"_blank\" rel=\"noopener noreferrer\">CPU Throttling<\/a> je vous recommande l&rsquo;article <a href=\"http:\/\/blogs.iis.net\/shauneagan\/cpu-throttling-iis-7-vs-iis-8\" target=\"_blank\" rel=\"noopener noreferrer\">suivant<\/a>.<\/p>\n<p>Laurent.<\/p>\n<hr \/>\n<p style=\"text-align: center;\"><strong>English Version Below &#8230;<\/strong><\/p>\n<hr \/>\n<div id=\"en-US\"><a href=\"#fr-FR\">Version fran\u00e7aise<\/a><\/div>\n<p>Perhaps you have noticed (or not) but the field related to the CPU limit for an application pool has receive an update since IIS 8.5 (Windows 2012 R2). Before this field accepted a value in thousandths of a CPU (what granularity!) As shown in the screenshot below. It was necessary to enter 30000 to limit CPU utilization to 30% (limitation shared among the worker processes \/ w3wp.exe processus serving an application pool).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-371\" src=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg\" alt=\"iis75cpulimit\" width=\"456\" height=\"51\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit.jpg 456w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis75cpulimit-300x34.jpg 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p>Since IIS 8.5, the value is expressed as a percentage, so just enter 30 to 30% as shown in the screenshot below:<\/p>\n<p><a href=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" src=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg\" alt=\"iis85cpulimit\" width=\"389\" height=\"47\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit.jpg 389w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2016\/03\/iis85cpulimit-300x36.jpg 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/a><\/p>\n<p>If you want to go further on the <a href=\"http:\/\/www.iis.net\/learn\/get-started\/whats-new-in-iis-8\/iis-80-cpu-throttling-sand-boxing-sites-and-applications\" target=\"_blank\" rel=\"noopener noreferrer\">CPU Throttling<\/a> I recommend the following <a href=\"http:\/\/blogs.iis.net\/shauneagan\/cpu-throttling-iis-7-vs-iis-8\" target=\"_blank\" rel=\"noopener noreferrer\">article<\/a>.<\/p>\n<p>Laurent.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>English version Peut-\u00eatre l&rsquo;avez-vous remarqu\u00e9 (ou pas) mais le champ permettant de rentrer une valeur pour la limitation du CPU pour un application pool a [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":2465,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-divers-misc"],"_links":{"self":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":1,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"predecessor-version":[{"id":2501,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/361\/revisions\/2501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media\/2465"}],"wp:attachment":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}