nerdexam
CompTIACompTIA

XK0-005 · Question #415

XK0-005 Question #415: Real Exam Question with Answer & Explanation

The correct answer is D: Configure the swap space to allow for spikes in usage during peak hours and prevent the Java. Based on the output of the image sent by the user, the system requires more swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory. The output shows that there is only 0 MB of swap space available on the system

Troubleshooting

Question

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?

Options

  • AConfigure memory allocation policies during business hours and prevent the Java process from
  • BConfigure a different nice value for the Java process to allow for more users and prevent the Java
  • CConfigure more CPU cores to allow for the server to allocate more processing and prevent the
  • DConfigure the swap space to allow for spikes in usage during peak hours and prevent the Java

Explanation

Based on the output of the image sent by the user, the system requires more swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory. The output shows that there is only 0 MB of swap space available on the system, which means that there is no room for swapping out memory pages when physical memory is full or low. The output also shows that there is only 793 MB of available memory on the system, which may not be enough to handle high-demand applications such as Java. This may cause Java to stop working due to insufficient memory or trigger an OutOfMemoryError exception. Configuring more swap space on the system would help to alleviate this issue by providing more virtual memory for applications and improving performance. Configuring memory allocation policies during business hours will not help to solve this issue, as it will not increase the amount of available memory or swap space on the system. Configuring a different nice value for Java process will not help to solve this issue, as it will only affect its scheduling priority, not its memory consumption or allocation. Configuring more CPU cores will not help to solve this issue, as it will only increase processing power, not memory capacity or availability.

Topics

#Linux performance#Memory management#Swap configuration#Application troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions