Why can't my computer speed up again after closing large applications?

My computer is running Windows XP and only has 1GB of RAM.

After launching some massive applications (like Eclipse and SQL Developer) the computer slows down considerably. The obvious symptom of this is the mouse pointer becomes less reponsive and it takes 1-2 seconds to reach the point I want it to be.

However, after I closed those applications, the computer is still slow and I need to reboot the computer to get it to be responsive again. Can't it reclaim the memory by itself?


I agree with the remark of Synetech about checking CPU usage more than memory usage.

BTW: An excellent article from Mark Russinovich about «The Memory-Optimization Hoax RAM optimizers make false promises»

http://www.windowsitpro.com/article/internals-and-architecture/the-memory-optimization-hoax

And now a suggested tool to know what's running in your PC and how much resources each process takes:

Process Explorer http://technet.microsoft.com/en-us/sysinternals/bb896653

[by the same Mark Russinovich...] ;-)

Hope this help. Let us know.


It is likely that your computer has not released the memory yet. You'll probably notice that there is a lot of disk activity while your machine swaps between the virtual memory and physical memory. It may take a while to release memory but one way to confirm it's released is by using Task Manager. Launch Task Manager and switch to the processes tab. You can sort by any of the columns there in ascending and descending order.

The one you want to look at is Memory, if you sort to show the processes using the most memory it will give you an idea which one is using up the memory. You can also use the View menu in Task Manager to Select Columns to display (eg. VM Size). If you see a process that is using a lot in the Mem Usage and VM Size then you can be reasonably confident this is what might be slowing down your machine. If it's not a critical service, you could terminate the process to see if this helps.

You can also look at a free tools liek RamRush which can forcibly clear memory that an application hasn't released after it has been closed.


Pagefile

Where is your pagefile?

I would recommend putting it on a dedicated volume to make it faster. Ideally, you would put it on a different physical drive from the one the OS is installed on (so long as it is less frequently used than the OS drive). If that is not possible, then at least put it in its own partition (as close to the start of the drive as possible) to ensure that it remains un-fragmented.

When you minimize or idle a program for a while, Windows pages its memory out to the swapfile on disk. When you close it, that memory has to be freed even if it is not in RAM (in which case, it has to be marked as free in the swapfile).

By optimizing the swapfile, when you close your memory-heavy programming apps, the OS will be able to page back in the memory from other programs in a much more reasonable amount of time.

Simply Busy

Failing that, patience is a virtue. (I have had plenty of times—eg encoding a video with the program set to real-time priority!—when the system was so bogged down by something that the mouse not only froze, but the keyboard even locked up such that the *-Lock LEDs would not change, and the internal speaker beeped. In most cases, unless it was a full-on crash-worth hang, waiting long enough would eventually fix it—assuming I had enough patience to wait.)

CPU

Like I said in my first comment. I would examine the CPU usage. While it is normal for the drive to thrash when memory is freed, it rarely causes the mouse to actually stutter. That is usually due to a high-priority process using a lot of CPU. Examine the Task Manager (or Process Explorer since it has a trace graph), to examine what process is using up the CPU to help narrow down the problem.

If the process that is spinning the CPU is the programming app’s (ie, the app is closed, but the process is still hanging around to finish cleaning up), then can use TaskMan (or ProcExp) to set it to low-priorty so that you can continue to use your system while waiting for it to finish.

Throttling

It also occurs to me that another thing that could be causing the issue is CPU throttling. After closing a large program like development environments, the system does a lot of clean up, so watch your CPU usage and temperature. Does it use a lot of cycles during the clean up process? Does the temperature go up? Perhaps the motherboard is configured to throttle the CPU once it reaches a certain temperature, thus causing the whole system to slow down, including the responsivenesses of the mouse cursor and keyboard.