microsoft / Windows-Dev-Performance

A repo for developers on Windows to file issues that impede their productivity, efficiency, and efficacy
MIT License
434 stars 20 forks source link

Explorer leaks resources over a long time #110

Closed AzAgarampur closed 8 months ago

AzAgarampur commented 1 year ago

Windows Build Number

10.0.22000.0

Processor Architecture

AMD64

Memory

8GB

Storage Type, free / capacity

C: SSD NVME 256GB

Relevant apps installed

Windows Explorer (no shell extensions)

Traces collected via Feedback Hub

None

Isssue description

When explorer runs for a long time, a bunch of initially-suspended threads are created in the explorer process, and a lot of memory is consumed over time. My system has been up for almost 50 days. Explorer is nearing a gigabyte of memory usage, has hundreds of suspended threads "WorkFolderShell.dll!DllUnregisterServer+0x26a0", and has an excess number of handles for those threads and many many terminated threads. Overall, this slows down the entire desktop and file browsing experience significantly. For laptops with only 8GB ram, this makes a big difference.

Memory usage: image

Suspended threads: image

Leaked handles: image

Uptime: image

Steps to reproduce

Run your system for a long time (does not need to be 50 days), notice how explorer will increase its resource usage (memory, threads, handles), and how the desktop experience slows down over time.

Expected Behavior

Resource utilization stays relatively the same when nothing demanding is being done.

Actual Behavior

Desktop experience slows down due to leaked resources.

BenJKuhn commented 1 year ago

Can you please submit this as an issue in feedback hub? That will capture more detailed system information that will be useful in diagnosing the issue.

AdamBraden commented 8 months ago

Closing - if this still repos, please submit under Feedback Hub.