CompTIA Linux+ (XK0-005) — Question 38

A systems administrator is notified that the mysqld process stopped unexpectedly. The systems administrator issues the following command:

sudo grep –i -r ‘out of memory’ /var/log
The output of the command shows the following:
kernel: Out of memory: Kill process 9112 (mysqld) score 511 or sacrifice child.
Which of the following commands should the systems administrator execute NEXT to troubleshoot this issue? (Select two).

Answer options

Correct answer: A, F

Explanation

The commands 'free -h' and 'vmstat -a 1 4' are relevant for checking memory usage and system performance, which are crucial in diagnosing out-of-memory issues. The other options, such as 'nc -v 127.0.0.1 3306' and 'killall -15', do not directly address memory concerns or provide information on the system's current memory state.