Exam XK0-005 All QuestionsBrowse all questions from this exam
Question 141

A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following output:

Output 1:

Output 2:

Output 3:

Which of the following should the administrator do to provide the BEST solution for the reported issue?

    Correct Answer: D

    The best solution is to configure swap space to handle spikes in memory usage during peak hours, preventing the Java process from being killed due to a lack of memory. The provided outputs show that the Java process was terminated by the Out-Of-Memory (OOM) killer because there was insufficient available memory, and there is no configured swap space on the system. Enabling swap space will provide additional virtual memory, which can prevent the system from running out of memory and stop processes from being killed.

Discussion
MissAllenOption: D

I choose answer D. The system killed the java process because of lack of memory, but no one has configured a swap partition! That will help. A swap partition is generally recommended as one of the two main partitions created during a linux installation.

Veteran903

Im with you, its D

IFBBPROSALCEDOOption: C

C. Configure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources. Adding more CPU cores can help distribute the load and handle higher CPU demands, potentially resolving the issue of high CPU usage by the Java process. Adding more CPU cores can help distribute the load and handle higher CPU demands, potentially resolving the issue of high CPU usage by the Java process.

DRVisionOption: D

Given this, the best solution would be to configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory. This can be done by increasing the size of the swap space or adding more swap space. This will provide a buffer for the system when it runs out of physical memory, preventing the OOM killer from being invoked and the Java process from being killed. So, the correct answer is D. Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.

BreakOff874Option: D

the last output shows that there is no swap available