Desktop Window Manager high memory: why it happens and 5 fixes

Desktop PC monitor and keyboard, where Desktop Window Manager (dwm.exe) draws every window on screen

Quick answer: Desktop Window Manager (dwm.exe) draws everything you see on screen, so it always uses some memory. If it climbs to several gigabytes and keeps growing, the cause is almost always the graphics driver. Update or clean-reinstall the driver from your PC or GPU maker, then restart the PC. For a quick fix until then, sign out and back in, which starts a fresh copy of dwm.exe. Turning off transparency and animations helps on low-memory PCs.

Applies to: Windows 11 and Windows 10. You can’t disable Desktop Window Manager in either version, and you shouldn’t try.

Desktop PC monitor and keyboard, where Desktop Window Manager (dwm.exe) draws every window on screen

What Desktop Window Manager does

Desktop Window Manager is the Windows compositor. Every app draws its window into its own off-screen buffer, and dwm.exe combines them into the final picture, adding shadows, rounded corners, transparency, animations, live thumbnails and scaling for high-DPI screens. Because it works with the graphics card, a lot of what Task Manager shows for it is graphics memory, not just regular RAM.

You’ll find it in Task Manager under Windows processes on the Processes tab, and as dwm.exe on the Details tab. It runs once for each signed-in user, so on a PC with several users signed in you’ll see more than one.

How much memory is normal?

There’s no single right number, because it depends on how many monitors you have, their resolution, HDR and how many windows are open. As a rough guide:

  • Tens to a few hundred MB: normal on most PCs, including 4K screens.
  • Rising during heavy use, then dropping again: normal. Games, video and many open windows push it up for a while.
  • Climbing steadily for hours to 1 GB or more and never coming down: a memory leak, usually in the graphics driver.

To see the full picture, open Task Manager with Ctrl + Shift + Esc, go to the Details tab, right-click a column header, choose Select columns and add Dedicated GPU memory and Shared GPU memory. A large and growing shared GPU memory figure for dwm.exe points to the driver too.

Fix 1: Update or reinstall the graphics driver

Laptop on a wooden table, ready to update the graphics driver that causes most dwm.exe memory leaks

Most cases of dwm.exe using too much memory have been traced to graphics driver bugs, and Intel, AMD and NVIDIA have all released driver updates that fixed leaks like this. So start here:

  1. Note your graphics hardware: right-click Start, open Device Manager and expand Display adapters.
  2. Download the latest driver from your laptop or PC maker’s support page, or from Intel, AMD or NVIDIA for a desktop graphics card.
  3. Install it. For NVIDIA and AMD, choose the clean or factory-reset option if the installer offers one.
  4. Restart the PC and watch dwm.exe in Task Manager for a day of normal use.

If the problem started right after a driver update, roll it back instead: in Device Manager, right-click the display adapter, choose Properties > Driver > Roll Back Driver. If Windows Update keeps putting the bad driver back, see how to stop Windows 11 updating your graphics driver. NVIDIA users may also notice the Control Panel has gone; that’s a separate change explained in NVIDIA Control Panel not showing.

Fix 2: Restart dwm.exe safely

Restarting dwm.exe frees the leaked memory straight away, though it will build up again if the driver is still faulty. Use one of these, from safest to least gentle:

  • Sign out and back in (or restart the PC). This always gives you a fresh copy and is the safest choice.
  • Reset the graphics driver: press Win + Ctrl + Shift + B. The screen goes black for a second and you hear a beep. This restarts the graphics driver without closing your apps and often brings the memory down.
  • End the task: in Task Manager’s Details tab, you can end dwm.exe; Windows starts it again automatically and the screen may flicker or go black briefly. Save your work first, because a few apps don’t cope well with this.

Fix 3: Turn down visual effects and transparency

Effects don’t cause leaks, but they do raise the baseline memory and GPU use, which matters on PCs with 4 to 8 GB of RAM or integrated graphics.

  1. Turn off transparency: on Windows 11 go to Settings > Personalization > Colors and switch off Transparency effects (on Windows 10 it’s in the same place).
  2. Turn off animations: on Windows 11 go to Settings > Accessibility > Visual effects and switch off Animation effects. On Windows 10, it’s Settings > Ease of Access > Display, then Show animations in Windows.
  3. For the biggest saving, press Win + R, type sysdm.cpl, open the Advanced tab, select Settings under Performance and choose Adjust for best performance. Tick Smooth edges of screen fonts again afterwards so text stays readable.

Fix 4: Check GPU scheduling, displays and HDR

Two monitors side by side, a setup that raises the memory Desktop Window Manager needs
  • Hardware-accelerated GPU scheduling: on Windows 11, go to Settings > System > Display > Graphics and open Advanced graphics settings (on some versions, Change default graphics settings). Switch the option to the other position, restart, and compare. Some drivers behave better with it on and others with it off.
  • Multiple or very high-resolution monitors: each extra screen, high refresh rate and HDR adds to the memory dwm.exe needs. Try disconnecting an extra monitor or turning off HDR in Settings > System > Display to see if usage drops; if it does, the usage may simply be expected for your setup.
  • Apps that leak windows: a buggy app that keeps creating windows can make dwm.exe grow. Close apps one at a time, especially browsers, overlays and screen recorders, and see whether the memory stops climbing.

Fix 5: Make sure dwm.exe is genuine

The real file lives in C:\Windows\System32. In Task Manager’s Details tab, right-click dwm.exe and choose Open file location. If it opens anywhere else, or there’s a second copy with a slightly different name, scan your PC for malware straight away. Malware sometimes hides behind trusted Windows names, much like the tricks described in our WMI Provider Host guide.

If you also see memory errors in other programs, run Windows Memory Diagnostic (mdsched.exe) to rule out faulty RAM.

Official sources: for more detail, see Microsoft’s own pages:

Frequently asked questions

Can I disable Desktop Window Manager?

No. In Windows 10 and 11 it’s a core part of the display system, and Windows needs it to show anything on screen. Fix the cause of the high usage instead.

Is dwm.exe a virus?

The real dwm.exe in C:\Windows\System32 is a genuine Microsoft file. A copy anywhere else is suspicious and worth a malware scan.

Why does Desktop Window Manager use so much GPU?

It draws the whole desktop, so moving windows, playing video or using high refresh rates raises its GPU use. Constant high GPU use while the desktop is idle usually points to a driver problem or an app that keeps redrawing.

Will adding more RAM fix it?

Not if it’s a leak; the memory would keep growing and simply take longer to cause problems. Update the driver first. Extra RAM only helps if normal usage is tight on your PC.

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *