Answer the question
In order to leave comments, you need to log in
How to automatically clear RAM on KVM virtual machines?
There are several virtual machines (KVM) running on the debian server. After a month of work, the RAM on the server is occupied by 80% or more. After rebooting virtual machines, RAM is used by 40 percent.
Is there any automated way to clear the RAM on virtual machines?
Answer the question
In order to leave comments, you need to log in
Isn't it more logical to look for what it is filled with? Maybe you have a memory leak there ...
Put the reboot command in the cron, in virtual machines
>Is there any automated way to clear the RAM on virtual machines?
restart only the software that eats up memory.
you can see top/atop.
also, about kernel caching methods: https://www.linuxatemyram.com/
you can add zswap, zram, regular swap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question