XK0-005 · Question #262
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service…
The correct answer is D. The out-of-memory killer was activated due to low available memory, causing the kernel to kill the. When a service like httpd repeatedly starts and then abruptly disappears, the most probable cause is the Linux kernel's Out-of-Memory (OOM) killer terminating the process due to insufficient available memory.
Question
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service, the site operates correctly for a few minutes before the process disappears again. Which of the following should the administrator consider as the MOST likely possibility before troubleshooting the issue?
Options
- AThe CPU has too much load, causing it to overheat, and the kernel is automatically killing the
- BAn external database to which the web server connects is offline, causing httpd to die due to
- CShared libraries, which were recently updated, are causing compatibility issues and httpd to die
- DThe out-of-memory killer was activated due to low available memory, causing the kernel to kill the
- EThe server is intermittently losing access to the network, causing socket errors that trigger httpd
How the community answered
(53 responses)- A4% (2)
- B23% (12)
- C6% (3)
- D57% (30)
- E11% (6)
Why each option
When a service like `httpd` repeatedly starts and then abruptly disappears, the most probable cause is the Linux kernel's Out-of-Memory (OOM) killer terminating the process due to insufficient available memory.
While high CPU load can cause performance issues, the kernel typically responds to CPU overheating by throttling the CPU or shutting down the system, not by selectively killing a userland process like `httpd`.
If an external database is offline, `httpd` would likely serve error pages or log connection failures, but the `httpd` process itself would generally continue running unless explicitly configured to exit on such an event, which is less common for intermittent disappearance.
Shared library compatibility issues usually result in application crashes or segmentation faults upon startup or specific function calls, which would typically generate crash logs or error messages, rather than the silent, repeated disappearance observed.
The Linux kernel's Out-of-Memory (OOM) killer is designed to terminate processes when the system runs critically low on memory, leading to the abrupt and ungraceful cessation of the `httpd` process without explicit application-level errors.
Intermittent network loss would cause client connectivity problems and `httpd` might log socket errors, but it is highly unlikely to cause the `httpd` process to repeatedly terminate itself entirely after a few minutes of operation.
Concept tested: Linux Out-of-Memory (OOM) killer
Source: https://www.kernel.org/doc/Documentation/vm/oom-killer.txt
Topics
Community Discussion
No community discussion yet for this question.