Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-006 Exam - Topic 3 Question 11 Discussion

A user reports recurrent issues with an application, which is currently operational. The systems administrator gathers the following outputs to diagnose the issue:Out of memory: Kill process (mariadb)Killed process (mariadb)mariadb invoked oom-killeregrep 'Out of memory' /var/log/messagesMultiple entries showing mariadb being killed by OOM killerfree -mMem: total 15819, used 10026, free 5174, available 5134Swap: 0 0 0sar -rkbmemused ~67%, no swap usageWhich of the following is a possible cause of this issue?
D) The process is showing signs of a memory leak.
A) A backup is consuming all the system memory.
B) The system is using all the swap.
C) The cached memory is approaching the system's limits.

CompTIA XK0-006 Exam - Topic 3 Question 11 Discussion

Actual exam question for CompTIA's XK0-006 exam
Question #: 11
Topic #: 3
[All XK0-006 Questions]

A user reports recurrent issues with an application, which is currently operational. The systems administrator gathers the following outputs to diagnose the issue:

Out of memory: Kill process (mariadb)

Killed process (mariadb)

mariadb invoked oom-killer

egrep 'Out of memory' /var/log/messages

Multiple entries showing mariadb being killed by OOM killer

free -m

Mem: total 15819, used 10026, free 5174, available 5134

Swap: 0 0 0

sar -r

kbmemused ~67%, no swap usage

Which of the following is a possible cause of this issue?

Show Suggested Answer Hide Answer
Suggested Answer: D

The correct answer is D. The process is showing signs of a memory leak because the logs clearly indicate repeated activation of the OOM (Out Of Memory) killer, specifically targeting the mariadb process. The OOM killer is triggered when the Linux kernel determines that the system is running critically low on memory and must terminate processes to maintain system stability.

The repeated log entries showing mariadb invoked oom-killer and multiple instances of the process being killed strongly suggest that this application is consuming increasing amounts of memory over time without releasing it properly. This is a classic symptom of a memory leak, where an application continuously allocates memory but fails to free it, eventually exhausting available system resources.

The free -m output shows that while there is still some free memory, swap space is completely unused (0 total). This means the system has no fallback memory, making it more susceptible to OOM conditions. However, the absence of swap alone does not explain why a specific process is repeatedly being killed.

Option A is incorrect because there is no indication of a backup process consuming memory. Option B is incorrect because the system is not using swap at all. Option C is incorrect because cached memory is reclaimable by the kernel and does not typically trigger the OOM killer.

From a Linux+ troubleshooting perspective, identifying repeated OOM events tied to a specific process is a strong indicator of inefficient memory handling or a memory leak. Administrators should investigate the application, apply updates or patches, or restart the service periodically while implementing proper monitoring and possibly adding swap space as a temporary mitigation.


Contribute your Thoughts:

0/2000 characters
Twana
2 days ago
Wait, how can there be no swap at all?
upvoted 0 times
...
Caitlin
7 days ago
Definitely not swap usage, there's none!
upvoted 0 times
...
Wayne
12 days ago
Sounds like a memory leak issue to me.
upvoted 1 times
...
Frankie
17 days ago
I’m not entirely sure, but I think if the system is using all its memory, it could be due to a process consuming too much, like in option A.
upvoted 0 times
...
Maia
22 days ago
I feel like a memory leak could definitely be a possibility, especially since mariadb keeps getting killed. That sounds familiar from practice questions.
upvoted 0 times
...
Virgina
28 days ago
I think option B is unlikely since the swap usage is zero, but I wonder if cached memory could be a factor.
upvoted 0 times
...
Rhea
1 month ago
I remember studying about the OOM killer and how it activates when the system runs out of memory, but I'm not sure if a backup could be the culprit here.
upvoted 0 times
...

Save Cancel