Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: memory "leaks"

09 Dec 2013   #1

Windows 7 ultimate 64-bit
memory "leaks"

Is there any way to fix the memory leaks that windows unfortunately is inheritently known for? Cause i have 16gb ddr3 which should be more than enough to keep the memory usage pretty low; but after several days of use; the memory usage keeps getting higher and higher until i finally reboot the system to refresh everything.

My System SpecsSystem Spec
09 Dec 2013   #2

Windows 7 Pro-x64

Windows doesn't create memory leaks. It's the result of poorly written software.

Overview of Memory Leaks

You can force Windows to clear idle memory by creating a desktop shortcut. Right click the desktop, select New then select Shortcut. When the wizard window appears, copy the line from the code below and paste it into the location field of the wizard.

 %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks
Click Next and give it a name like Flush Memory, Clear Idle Memory or similar. Click Next and the shortcut will be placed on the desktop. Before using it, you must give it Administrative Privileges or it won't run and you won't get any notice.

To give the shortcut Administrative Privileges, Right click on the desktop shortcut and select Properties. Click on the Shortcut tab then click on Advanced. Click on the Run as Administrator box to select. OK out of the windows.

Attached Thumbnails
memory "leaks"-clear-memory.jpg  
My System SpecsSystem Spec
09 Dec 2013   #3

Windows 7 Pro-x64

I should mention, before I'm corrected, that this doesn't actually "flush memory" but forces Windows to evaluate idle processes. If a program terminated without releasing memory, Windows treats the process as idle and holds the memory. This will clear the hold if the process isn't running.
My System SpecsSystem Spec

09 Dec 2013   #4

Windows 7 ultimate 64-bit

Ok thanks will try this out and see what happens
My System SpecsSystem Spec
09 Dec 2013   #5

Windows 7 Pro 64 bit

A great deal about the ProcessIdleTasks command can be found on the Internet. Unfortunately most of it is wrong.

Windows has a number of system optimization and maintenance tasks that it normally runs during idle periods of low CPU usage and no user input. This way they won't interfere with user activity. The command forces these tasks to run immediately, regardless of current system activity. This could be of use for benchmarking so you don't have to wait for an idle period. It may also be of use on a laptop where idle period are rare.

I don't know where the idea that the command clears memory or stops idle tasks comes from. Try the command while Task Manager is open to see for yourself what it does. I have done this and found that memory usage was actually higher after running the command.

Windows is more than capable of manging memory by itself without such user intervention.

See this:
What does "Rundll32.exe advapi32.dll,ProcessIdleTasks" do?
My System SpecsSystem Spec
09 Dec 2013   #6
Layback Bear

Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64

Here is a great way to take care of memory and start fresh.
Shut down the computer and Start it again. Takes less tha 60 sec. and you are off and running again.
My System SpecsSystem Spec

 memory "leaks"

Thread Tools

Similar help and support threads
Thread Forum
Which memory stick is "faster", and are the two "compatible"?
I recently received a brand new Lenovo Thinkpad P70, ordered with the basic 8GB of memory. I also ordered an additional 8GB of memory from Crucial, purportedly compatible with the P70. The P70 has four SODIMM memory sockets and can support up to 4x16GB=64GB total non-ECC DDR4 2133MHz storage with...
Hardware & Devices
Diff.between "available" and "free" physical memory?
When I look into the "Performance" tab of my TaskManager then there are the following values: Total: 4014 Cached: 1299 Available: 2697 Free: 1532 Hmm, What is the difference between available and free space? Shouldn't this be the same?
Performance & Maintenance
Changing the "minimize" "maximize" and "close" buttons of a theme
Ok so I'm using a custom visual style made by another user however I don't really like the buttons used that I mentioned above. The creator states it is acceptable to change the theme to however you like as long as you don't redistribute it anywhere. Ok so I opened up the .msstyles file (using...
Need to add "TASKBARS" (MSese for "Launchpads", "Docks" NOT "Toolbars"
My office just upgraded, and I can no longer use Windows XP. On this system, I was able to add a separate taskbar to facilitate quick access to commonly-browsed folder locations on our vast network, and another one expedited the launching of useful programs and lists. Each task on each taskbar...
General Discussion
"Out of Memory" Error, all apps continually increase memory usage
I have windows 7 64 bit and also running a ssd. Just a few days ago I've started to have an issue where after my computer is running for a couple hours all processes continually increase the amount of memory they are using until I get an out of memory error. Here is a pic of it around 75%. I...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:30.
Twitter Facebook Google+