acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

Zombie processes exceeding ulimits

Open rushabhnagda11 opened this issue 9 years ago • 4 comments

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?

rushabhnagda11 avatar Apr 22 '17 11:04 rushabhnagda11

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?

rushabhnagda11 avatar Apr 27 '17 09:04 rushabhnagda11

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.

seanknox avatar May 12 '17 02:05 seanknox

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

rushabhnagda11 avatar Jun 29 '17 12:06 rushabhnagda11

not reopening since I cant find a way to reproduce

rushabhnagda11 avatar Jun 29 '17 12:06 rushabhnagda11