ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 358 - XK0-005 discussion

Report
Export

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

Answers
A.

grep /proc/oom_score

B.

grep -ir 'out of memory' /var/log

Answers
B.

grep -ir 'out of memory' /var/log

C.

cat /var/run/initramfs/overlayroot.log | grep 'out of memory'

Answers
C.

cat /var/run/initramfs/overlayroot.log | grep 'out of memory'

D.

cat /sys/block/loop0/events

Answers
D.

cat /sys/block/loop0/events

Suggested answer: B

Explanation:

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.

asked 18/10/2024
Nick Daniel
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first