How to Remove DLLs from Cache Memory

If you notice your system running slowly after Windows has been running for some time, or if your RAM seems to be getting low for some reason, the culprit might be left-behind DLLs from programs that are no longer running. Sometimes Windows keeps Dynamic-link libraries (DLLs) in cache memory even when the program that required them is no longer running, and this cuts down on the memory available to other applications.

1. Open the Start menu, enter regedit in the Start menu search box and press Enter key.

How to Remove DLLs from Cache Memory Hi6PqjT

2. In the left pane navigate to following registry key:

Code:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer


3. In the right pane, right-click and select New > DWORD (32-bit) Value.

How to Remove DLLs from Cache Memory GApPPiH

4. Name the DWORD value as AlwaysUnloadDLL

How to Remove DLLs from Cache Memory M83CLs7

5. Double-click on AlwaysUnloadDLL value and in the Value data textbox enter the value 1

How to Remove DLLs from Cache Memory AphVRmJ

6. Exit the Registry, and reboot for the new setting to take effect.


Note that this setting might cause problems with some programs. Some Windows programs especially older and 16-bit programs can issue error messages with this setting in effect, so if that starts happening, delete the new AlwaysUnloadDLL value, or give it a value of 0.


Below tutorial is designed to help you transform your slow PC into a faster PC.

Tweaking & Optimizing Window Operating System