CompTIA Server+ (SK0-005)TroubleshootingHard

A server administrator is troubleshooting a Linux server that periodically becomes unresponsive, requiring a hard reboot. The system logs show repeated 'Out of Memory (OOM) Killer' messages, indicating that processes are being terminated due to memory pressure. The server has 16GB of RAM and 32GB of swap space. What is the MOST immediate and effective action to take?

  1. ADisable the OOM Killer to prevent process termination.
  2. BIncrease the size of the swap partition.
  3. CInstall more physical RAM.
  4. DIdentify and optimize/terminate memory-intensive processes.
Show answer & explanation

Correct answer: D. Identify and optimize/terminate memory-intensive processes.

The OOM Killer activating means the system has exhausted both physical RAM and swap space, or is under such extreme memory pressure that it is proactively killing processes. While more RAM or swap might delay the issue, the most effective immediate action is to identify which processes are consuming excessive memory and either optimize their configuration, scale them back, or terminate non-essential ones to alleviate the memory pressure.

Why the other options are wrong

  • A. Disabling the OOM Killer is dangerous; it would lead to system instability and potential crashes rather than solving the memory exhaustion issue.
  • B. Increasing swap space might delay the OOM Killer but doesn't solve the root problem of excessive memory demand, and swap is much slower than RAM.
  • C. Installing more physical RAM is a long-term solution but not an immediate action to address an existing OOM Killer event.

Linux OOM Killer

The Linux Out of Memory (OOM) Killer is a kernel mechanism that terminates processes to free up memory when the system runs out of both physical RAM and swap space.

  • Activates under extreme memory pressure.
  • Prevents system from crashing due to memory exhaustion.
  • Indicates a severe memory resource problem.

Memory trick: OOM Killer means memory's empty.

More Troubleshooting questions