How to find out which process was killed by the OOM killer

17 Oct 2015

$ grep -i 'killed process' /var/log/syslog

or

# dmesg -T | grep -i "Out of"

Sample feedback from above command:

[Wed Jan 27 17:26:39 2016] Out of memory: Kill process 41475 (java) score 169 or sacrifice child