memory – VirtualBox is leaking RAM and causing performance issues in host

VirtualBox 7.0.6-r2 gentoo is using too much RAM

htop of VirtualBoxVM process

VM set to 16GB RAM

My VM is set to use 16gb ram but the actual usage of ram is above 30GB, which is around twice the limit I set.

How can I fix it, if its a memory leak then I might switch to VMWare or Qemu + KVM (libvirt).

My kernel version is 6.1.19
Kernel Version

I tried rebooting VM, it did decrease the memory usage for some time. My host is yet not struggling with RAM because its having Zram and 64 GB but I like to use it for other purposes also :-).

I have not yet replaced the current virtual-box with 5.x because I don’t think I can compile the kernel module of it in this newer kernel.

Read more here: Source link