Interview Prep/Linux/Processes, memory and OOM

A process ignores `kill <PID>` (SIGTERM) and keeps running.

BeginnerTroubleshootingProcesses, memory and OOM
Answer

Likely causes → The process catches or ignores SIGTERM, is busy in a long shutdown, or you're signalling a wrapper and not the real worker.

Diagnose →

grep -E 'SigCgt|SigIgn' /proc/&lt;PID>/status
pstree -p &lt;PID>

Fix → Wait for graceful shutdown; check the app's logs. If it's truly stuck, kill -KILL &lt;PID>. For process trees, signal the group: kill -TERM -- -&lt;PGID>.

Prevent → Make apps handle SIGTERM properly; in containers, make the app PID 1 or use exec in entrypoint scripts.

All Linux questions Roadmap: Linux

More on Processes, memory and OOM