Reputation: 53
For example, when a particular application runs, it causes 10M of memory leaks. If I kill the process, will the 10M be recovered by the system?
I tried to check myself:
I want to confirm: when the application killed, will the memory consumed by the process be reclaimed by the operating system or not?
Upvotes: 4
Views: 3961
Reputation: 1856
Yes, killed processes will return any used memory to the operating system.
Keep in mind that any filesystem cache used by the application may not be free'd immediately.
Upvotes: 4