The MySQL database process that was running on a Linux server suddenly stopped, and the process was killed. Which of the following commands can help identify whether this issue was produced by the OOM killer?
A.
grep /proc/oom_score
B.
grep -ir "out of memory" /var/log
C.
cat /var/run/initramfs/overlayroot.log | grep "out of memory"
The grep -ir "out of memory" /var/log command searches through log files in /var/log for any instances of "out of memory" errors, which indicate that the oom-killer terminated processes due to insufficient memory. This is the quickest way to determine if the oom-killer caused the MySQL process to be killed.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit