Linux – Finding which process was killed by Linux OOM killer


When Linux runs out of memory (OOM), the OOM killer chooses a process to kill based on some heuristics (it's an interesting read:

How can one programmatically determine which processes have recently been killed by the OOM killer?

Best Solution

Try this out:

grep -i 'killed process' /var/log/messages
Related Question