`kill -9 <PID>` doesn't kill a process; it stays in state `D`.
IntermediateTroubleshootingProcesses, memory and OOM
Answer
Likely causes → The process is in uninterruptible sleep, waiting on I/O in the kernel (dead NFS server, failing disk, hung storage driver). Signals are only delivered when it leaves that state.
Diagnose →
ps -o pid,stat,wchan:32,cmd -p <PID>
sudo cat /proc/<PID>/stack
dmesg -T | grep -Ei 'hung_task|blocked for more than'
Fix → Fix what it's waiting on: restore the NFS server, umount -f the dead mount, or replace the failing device. If the kernel is stuck, a reboot is the only option.
Prevent → Monitor storage and NFS health; avoid hard NFS mounts on critical paths.
More on Processes, memory and OOM
A Java service disappears without an error in its own log. `dmesg` shows `Out of memory: Killed process 4121 (java) total-vm:... anon-rss:...`.BeginnerA service gets killed with `Memory cgroup out of memory: Killed process ...` but the host has 20 GB free.Intermediate`ps` shows dozens of processes in state `Z` with `<defunct>`.BeginnerZombie count keeps climbing into the thousands and new processes fail with `fork: Resource temporarily unavailable`.AdvancedAn app crashes under load with `java.io.IOException: Too many open files` (or `EMFILE`).BeginnerYou raised `nofile` in `/etc/security/limits.conf` to 65536, but the service still shows `Max open files 1024`.Intermediate