Windows – Does killing proccess means free used memory

memory leakmemory usageprocesswindows

I have the service, that each second run external exe programs (for example process1.exe) and kill's them. Taskmgr – show only one process. After running service i get minimal free memory availability. Sum of all processes memory and total usage memory not equal. When i run RamMap processes i see a lot of expanding procces1.exe. Looks like killing process doesn't mean free it memory.

Can you advice windows soft for dead process memory leak detection?

Best Answer

Modern operating systems avoid freeing memory if they have any other choice. See this answer for more details. If the page is dirty, shared, or has a name in the filesystem, the page can still be accessed, so there is no need to make it free. Only if the page is both unshared and anonymous will it be freed.