{"id":10896,"date":"2019-08-28T00:05:00","date_gmt":"2019-08-27T22:05:00","guid":{"rendered":"http:\/\/159.69.82.204\/win\/?p=10896"},"modified":"2023-08-25T22:54:09","modified_gmt":"2023-08-25T20:54:09","slug":"windows-10-v1903-rdp-dwm-exe-causes-high-cpu-load-freezes-vms","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2019\/08\/28\/windows-10-v1903-rdp-dwm-exe-causes-high-cpu-load-freezes-vms\/","title":{"rendered":"Windows 10 V1903: RDP (dwm.exe) causes high CPU load, freezes VMs"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline;\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2015\/01\/win102.jpg\" width=\"58\" height=\"58\" align=\"left\" \/>[<a href=\"https:\/\/www.borncity.com\/blog\/2019\/08\/27\/windows-10-v1903-rdp-lastet-cpu-kern-mit-dwm-exe-aus-vms-frieren-ein\/\" target=\"_blank\" rel=\"noopener noreferrer\">German<\/a>]Windows 10 May 2019 Update (version 1903) has a bug in Remote Desktop Connections (RDP). These cause a high CPU load on a CPU core when disconnecting the session. There are also reports that VMs freeze on RDP connections (when not enough cores are allocated). However, there is a workaround.<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vg08.met.vgwort.de\/na\/feba5ae360b9463d9b54a74f2b312546\" alt=\"\" width=\"1\" height=\"1\" \/>It is a bug whose solution has already been mentioned here in the blog in another context. But I decided to prepare the topic separately again. Maybe it will help those affected.<\/p>\n<h2>Windows 10 V1903: Issues with RDP connections<\/h2>\n<p>If you establish a remote desktop connection (RDP) to a computer with Windows 10 May 2019 Update (Version 1903), you should be careful. If you disconnect the session without logging out, the process <em>dwm.exe<\/em> (Desktop Windows Manager) hangs on the client. The process will then fully utilize a CPU core.<\/p>\n<p><a href=\"https:\/\/web.archive.org\/web\/20230609113109\/https:\/\/filestore.community.support.microsoft.com\/api\/images\/212f9832-9985-4821-b1c6-e885aeb37102?upload=true\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" title=\"DWM.exe, hohe CPU-Last\" src=\"https:\/\/web.archive.org\/web\/20230609113109\/https:\/\/filestore.community.support.microsoft.com\/api\/images\/212f9832-9985-4821-b1c6-e885aeb37102?upload=true\" alt=\"DWM.exe, hohe CPU-Last\" width=\"615\" height=\"357\" \/><\/a><br \/>\n(<a href=\"https:\/\/web.archive.org\/web\/20230609113109\/https:\/\/filestore.community.support.microsoft.com\/api\/images\/212f9832-9985-4821-b1c6-e885aeb37102?upload=true\" target=\"_blank\" rel=\"noopener noreferrer\">Click to zoom<\/a>, Source: MS-Answers-Forum)<\/p>\n<p>This high CPU load remains until the next login. Users opened this thread in the <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-performance\/after-exiting-a-remote-desktop-session-cpu-load\/e21e7da0-9a64-4a14-a671-b7cb1b61f66e?auth=1&amp;page=1\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Answers forum<\/a> on June 15, 2019 with a description of the bug and posted the screenshot above.<\/p>\n<blockquote><p><strong>After exiting a remote desktop session, cpu load goes up (dwm.exe) until next login<\/strong><\/p>\n<p>When I access another Windows 10 PC via remote desktop and then exit the remote desktop session, the CPU load goes up. It is DWM.EXE that causes it.<\/p><\/blockquote>\n<p>The user has taken the usual measures to exclude his system as a cause. He wrote what he've checked:<\/p>\n<blockquote><p>What I did to exclude other causes:<\/p>\n<p>&#8211; scanned for viruses (yes, DWM.EXE is the original one from MS)<br \/>\n&#8211; made sure no magnifier was active (Google proposed this)<br \/>\n&#8211; made sure no screen saver is active and nothing else is on my lock screen<br \/>\n&#8211; made sure the gfx driver (Intel integrated) is up to date<\/p><\/blockquote>\n<p>He also performed system file checks with sfc \/scannow and dism without success. The whole thing is simply a bug in Windows 10 version 1903. The thread has already received over 10,000 user votes that have the same problem. In addition, a user has linked a number of other sources in the thread. So far, however, Microsoft has not provided a fix or even left out the problem at all.<\/p>\n<h2>Workaround: Force XDDM driver use<\/h2>\n<p>In mid-July 2019, I published the blog post <a href=\"https:\/\/borncity.com\/win\/2019\/07\/12\/windows-10-v1903-remote-desktop-shows-black-screen\/\">Windows 10 V1903: Remote Desktop shows Black Screen<\/a>, which deals with a different problem in RDP sessions (black screen). My suggestion for a workaround there was to force the use of the XDDM driver instead of the normally used WDDM graphics driver.<\/p>\n<ol>\n<li>Launch <em>gpedit<\/em>.msc with administrative privleges.<\/li>\n<li>Then navigate to the following branch in the Group Policy Editor.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/i.imgur.com\/hL0CWnu.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/hL0CWnu.jpg\" width=\"627\" height=\"374\" \/><\/a><br \/>\n(<a href=\"https:\/\/i.imgur.com\/hL0CWnu.jpg\" target=\"_blank\" rel=\"noopener noreferrer\">Click to zoom<\/a>)<\/p>\n<p>Use the branch: Computer Configuration-&gt;Policies-&gt;Windows Settings-&gt;Administrative Templates-&gt;Windows Components-&gt;Remote Desktop Services-&gt;Remote Desktop Session Host-&gt;Remote Session Environment, set the Policy <em>Use WDDM graphics display driver for Remote Desktop Connections<\/em> to Disabled.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/swcPZ1v.jpg\" \/><\/p>\n<p>Once this policy has been disabled and the commit may have been forced with<em> gpupdate \/force<\/em>, the problem should be fixed.<\/p>\n<p>Already in the German user comments there was a <a href=\"https:\/\/www.borncity.com\/blog\/2019\/07\/12\/windows-10-v1903-remote-desktop-zeigt-black-screen\/#comment-74922\" target=\"_blank\" rel=\"noopener noreferrer\">reference<\/a> to the <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-performance\/after-exiting-a-remote-desktop-session-cpu-load\/e21e7da0-9a64-4a14-a671-b7cb1b61f66e?auth=1\" target=\"_blank\" rel=\"noopener noreferrer\">MS forum post<\/a> linked above &#8211; and <a href=\"https:\/\/www.borncity.com\/blog\/2019\/07\/12\/windows-10-v1903-remote-desktop-zeigt-black-screen\/#comment-74927\" target=\"_blank\" rel=\"noopener noreferrer\">this comment<\/a> and another <a href=\"https:\/\/www.borncity.com\/blog\/2019\/07\/12\/windows-10-v1903-remote-desktop-zeigt-black-screen\/#comment-76800\" target=\"_blank\" rel=\"noopener noreferrer\">comment<\/a> describe that the workaround helps with a freezing VM. In the <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-performance\/after-exiting-a-remote-desktop-session-cpu-load\/e21e7da0-9a64-4a14-a671-b7cb1b61f66e?auth=1&amp;page=2\" target=\"_blank\" rel=\"noopener noreferrer\">MS forum post<\/a>, user Dr4g0n 36 writes that for him forcing the XDDM driver also helped. I myself, in addition to the comments here in the blog, have become aware of the problem again through <a href=\"https:\/\/administrator.de\/content\/detail.php?id=485460&amp;nid=786774#comment-1386317\" target=\"_blank\" rel=\"noopener noreferrer\">this entry<\/a> at German site administrator.de.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]Windows 10 May 2019 Update (version 1903) has a bug in Remote Desktop Connections (RDP). These cause a high CPU load on a CPU core when disconnecting the session. There are also reports that VMs freeze on RDP connections (when &hellip; <a href=\"https:\/\/borncity.com\/win\/2019\/08\/28\/windows-10-v1903-rdp-dwm-exe-causes-high-cpu-load-freezes-vms\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,2],"tags":[47,1359,76],"class_list":["post-10896","post","type-post","status-publish","format-standard","hentry","category-issue","category-windows","tag-issue","tag-rdp","tag-windows-10"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/10896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=10896"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/10896\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=10896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=10896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=10896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}