Easily Flush the Windows Memory Cache

If you run multiple applications simultaneously in Windows for long periods of time, you probably notice that your system’s performance gradually decreases over time. When you close an application either from within the application or by using the Task Manager, the tasks or threads associated with the application may not all be completely released. This ties up your system’s memory resources and causes your system to become sluggish and possible unstable. You may think that the only way to solve this problem is to reboot your machine. We found an easy way to flush the memory cache without rebooting your computer.

To easily flush the Windows memory cache, we will create a shortcut containing a command that will perform the task. To do this, right-click in an empty area of the desktop and select New | Shortcut from the popup menu.

Creating a new shortcut

The Create Shortcut dialog box displays. Copy and paste the following command into the Type the location of the item edit box on the first screen of the dialog box.

%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks

Click Next.

Entering the command to flush the memory

On the next screen, enter a name for the shortcut in the Type a name for this shortcut edit box and click Finish.

Entering a name for the shortcut

Your shortcut may have been placed where you right-clicked to create the new shortcut. If you want it lined up with your other shortcuts, right-click on an empty space on the desktop and select View | Auto arrange icons from the popup menu.

Selecting Auto arrange icons

When your Windows system feels as if it not responding to commands as quickly as it should, run this command using the convenient shortcut. Your system’s performance should improve.

Using the shortcut to flush the memory

You can also put the shortcut on the Taskbar for easy, one-click access. To do this, right-click on the shortcut and select Pin to Taskbar from the popup menu.

NOTE: You can also add the shortcut to the Start menu using the Pin to Start Menu option on the popup menu.

Pinning the shortcut to the Taskbar

We created this shortcut in Windows 7 for the example in this post, but this shortcut will work in Windows Vista and Windows XP just as well.

NOTE: For one-click access to the shortcut in Windows XP, drag the icon on the desktop to the Quick Launch bar. The icon will not be moved; a copy of the icon will be available on both the desktop and the Quick Launch bar.

by Lori Kaufman

More posts from the Windows 7 Category

01Low_Battery_Warning.jpg

Five Ways To Conserve Laptop Battery Life In Windows 7

Turn the Windows Quick Launch Bar into a Super Application Launcher

Fix “Windows Anytime Upgrade was not successful” Error

01_new_navigation_pane

Show the Classic Navigation Tree in Windows 7 Explorer

Popular Posts This Month

event id

Fix Windows 8 App Opens Then Closes

runas command

5 Windows Alternatives to the Linux sudo Command

5 Utilities for Changing DNS Servers in Windows Reviewed

windows defender

Windows Defender vs. Security Essentials vs Safety Scanner

Comments [2]

  1. askvpb says:

    how do I know this command worked? is there a way to check before the command and after the command is executed?

  2. Alex says:

    I am looking in task Manager, I still have more than 4GB of memory in use after I used this command. I guess windows, chrome, BitDefender and other stuff actually use over 4 gigs of ram or..this command is ineffective

Leave a Reply