![]() ![]() Oh, and it is completely free and without any warranty so use it at your own risk! Now I have a Windows Memory Cleaner tool that I run on my system to free memory from running processes. Letting the option for the user to set it up. ![]() With an option to clean it once the system memory goes above some percentage. The next step was to build a small GUI tool that will run and clean the memory. The magic happened and I was able to free memory from a running process, next step was to build a small tool that will run on all the processes and clean memory from them, using the brute force method I use a for loop to try and open each one of the running processes, and send the process handle to the EmptyWorkingSet function, and it works I was able to free memory from the running process. I am not sure how to explain it, but once I found this, I had this strange feeling that everything is possible! I open my IDE and use this function to see if this is what I am looking for, and it works! The function EmptyWorkingSet gets a handle to the process and tries to, according to the Microsoft docs – Remove as many pages as possible from the working set of the specified process. Then I found, a function that can do it, apparently there is a built-in function that can do it. During my searching I found all kinds of might work scenarios that if I will code them might do the job, but how can I be sure that I can free this heap? Let dig into it. ![]() The idea of cleaning the memory came back into my head and I started to search for a way to do it. Several weeks back, while struggling to move from one window to another on my PC, living me no other choice but to reboot the system, with lots of not saved files, lucky me that notepad++ save the files data even if you do not save it, there was no loss of data from my side. Life was happening so I let it go and continue with the routine. I give it a short search but did not find something that can help me do it. Especially when opening more than several tabs in a web browser, I think it is related to the ajax that working behind the scene updated with new data he pages that cause the system to eat memory and probably not release it as needed, but I am not sure as I did not investigate it. One of the things that I accepted, when working with Windows OS, is that you need to restart the system from time to time to help it clean up. I was thinking that I need to know how it is working. I remembered that I had a tool that was only doing that on my home PC. One of the stuff it was doing was cleaning process memory. In one of them, I was introduced to a tool that was able to do all kinds of stuff. The long story started several years ago when I was visiting customers as part of my working routine. Windows Memory Cleaner Command line version Windows Memory Cleaner The long story There are 3 versions, 2 command-line tools, and one with UI, see the below image. The short story is that I build a small tool – Windows Memory Cleaner, that as the name suggest clean Windows memory, you can download from the following link: WMC Stay Safe Stay Anonymous Use NordVPN Windows Memory CleanerĪre you familiar with the sentence long story short? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |