Zombie processes exceeding ulimits
I have a k8s cluster running for about a month. One of the nodes became very unresponsive, on sshing into this node (which worked after a few attempts).
ps -ef | grep defunct | wc -l gives 18622 processes.
Here is a sample of ps -ef | grep defunct
root 63412 16414 0 Mar31 ? 00:00:00 [wc] <defunct> root 63451 16414 0 Mar31 ? 00:00:00 [wc] <defunct> root 63588 16414 0 Mar31 ? 00:00:00 [wc] <defunct> root 63679 16414 0 Mar31 ? 00:00:00 [wc] <defunct> root 63686 16414 0 Mar31 ? 00:00:00 [wc] <defunct>
where 16414 is the kubelet process. Any idea why they're not getting killed properly?
After restarting the kubelet process on these nodes. Things seem to be fine. It's been around 4 days and not observing any such process on ps -aux.
Something very specific to my setup might have triggered this? Any other info I can pull to help?
Hi @rushabhnagda11. Take a look at the Kubernetes cluster troubleshooting guide: https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/
I'm closing this issue for now, but feel free to re-open if you gather more information.
Not sure why more people arent reporting this issue, but it's cropped up again.
ps -ef | grep defunct | wc -l gives 27k processes
ulimit -a
core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 27720 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 27720 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
not reopening since I cant find a way to reproduce