earlyoom alternatives
Earlyoom monitors available memory and free swap space, checking up to 10 times per second. It terminates the process with the highest oom_score if both memory and swap fall below a configurable percentage. It is designed to prevent system crashes due to memory exhaustion.