I'm running a Ubuntu VM with an 8 GB RAM with docker containers ( 8 GB is just about enough for my requirements) but at some point the VM freezes/crashes due to memory exhaustion leaving me no choice but to power-off/reset the VM.
Is there a system configuration that can be done/added so that there is always enough just about enough memory for the OS to run without freezing?