Same here on my W10 1903 Guest VM running on 2016 Hyper-V Host.
DWM.exe pegs one CPU core after RDP session disconnects.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
*** PROBLEM RESOLVED BY KB4522355 RELEASED OCTOBER 24TH 2019. ***
Two systems,
On completion of a remote desktop session, the target system shows high CPU utilisation (one core running at 100%) for DWM.EXE - the newer machine (Intel Iris Plus 655) will eventually crash several hours later - I suspect a memory leak such as the previous one affecting QuickSync.
If I change the drivers to "Microsoft Basic Display Adapter" then things return to normal re: DWM.EXE. It's not a long term fix as one of the machines is my Media Centre PC and I lose audio output on it, the other is a headless Plex server and I lose "Quick Sync" hardware transcoding.
Anyone else seeing this ? If so after a bit of digging I've identified a short term workaround.
I believe there is a problem with the Microsoft RDP code in 1903 (an area which seems to have had a major internal overhaul), and I document a successful workaround.
For clarity,
It seems Microsoft has done significant engineering to Remote Desktop in Windows 10 1903 and I now believe a significant bug exists in the Microsoft code.
In the first article a Microsoft employee mentions
<--------------------->
There’s a known issue with some of the old display drivers.**<I believe the issue I am facing is related to this area>
Display drivers report some of their capabilities upon load. In previous Windows versions this reported data wasn’t used or verified. Because of that, some of the old versions of the legacy display driver may report invalid data and it would be ignored. Starting with Windows 10 1903 RDP uses this data to initialize the session.
The best option is to install an updated display driver from the hardware manufacturer. If the new version is not available, you can workaround this by disabling the problematic driver in the device manager.
Our team has identified the issue and we are currently verifying the fix that will dynamically switch to the software renderer if the problematic driver is detected.
I will this thread when the fix will be included to the Windows Insider release.
<---------------------->
Further testing in my environment has shown that machines without Intel integrated graphics are also showing the problem.
In the second article it mentions a change to the RDP driver area
<--------------------->
XDDM-based remote display driver: Starting with this release the Remote Desktop Services uses a Windows Display Driver Model (WDDM) based Indirect Display Driver (IDD) for a single session remote desktop. The support for Windows 2000 Display Driver Model (XDDM) based remote display drivers will be removed in a future release. Independent Software Vendors that use XDDM-based remote display driver should plan a migration to the WDDM driver model. For more information on implementing remote indirect display driver ISVs can reach out to rdsdev@microsoft.com.
<--------------------->
As a workaround on all of my affected machines I have used Group Policy Editor to set
Local Computer Policy
Computer Configuration
Administrative Templates
Windows Components
Remote Desktop Service
Remote Desktop Session Host
Remote Session Environment
Use WDDM graphics display driver for Remote Desktop Connections
to DISABLED
This forces RDP to use the old (and now deprecated XDDM drivers)
After rebooting, behaviour returns to normal and after disconnecting from an RDP session the RDP host (target machine) no longer shows DWM.EXE consuming CPU.
This isn't a long term fix (to rely on a deprecated feature). I also don't understand why only a limited number of users are affected, but for now, I'm up and running again, and hoping for a Microsoft fix.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Same here on my W10 1903 Guest VM running on 2016 Hyper-V Host.
DWM.exe pegs one CPU core after RDP session disconnects.
Wow, thank you for saving us. I have a Dell Vostro 3670 i5 Windows build 1903. I have spent the entire day traveling 20 minutes back and forth between sites to restart the computer. I thought my CPU was overheating and I was in the process of monitoring it when the computer again locked up. Thank you.
Same for me using KVM on a linux machine
Having this problem on ASUS Z390-A with Intel Core i9-9900K running Intel(R) UHD Graphics 630.
Each Remote Desktop Session that is disconnected ends up with one dwm.exe process with 1 thread at 100% CPU, so for Core i9-9900k it is about 6% CPU per disconnected session. The impact seems to be beyond the 6% CPU in that it seems like wait times are increased and parallelism overall is decreased, we have some workloads that go from 30 minutes to 1hr 30 minutes even if there is a single disconnected Remote Desktop Session and the workloads don't seem to be able to use as many cores.
Switching around display drivers did not help, none of this helped:
The group policy setting in original post did work:
Thank you for the helpful information.
Hopefully Microsoft will have a fix out soon for this situation.
Hi,
Got the same problem here. The CPU keeps spiking after shutting down the remote desktop sessions. When i logon the cpu load becomes normal...
Hope MS comes with a fix soon because my cpu fan keeps making noise...