Interview Prep/Linux/Processes, memory and OOM

Zombie count keeps climbing into the thousands and new processes fail with `fork: Resource temporarily unavailable`.

AdvancedTroubleshootingProcesses, memory and OOM
Answer

Likely causes → Zombies hold PIDs; the user or system has hit pids.max, ulimit -u (nproc), or kernel.pid_max.

Diagnose →

ps -eo stat | grep -c Z
cat /proc/sys/kernel/pid_max
ulimit -u
systemctl show app -p TasksMax -p TasksCurrent

Fix → Restart the parent that isn't reaping (frees all its zombies at once). Temporarily raise TasksMax= or nproc only if the load is legitimate.

Prevent → Fix the reaping bug; alert on zombie count and task counts per service.

All Linux questions Roadmap: Linux

More on Processes, memory and OOM