Last week I upgraded Ubuntu from version 14.04 to 18.04 and almost everything is fine.
After some time, day or two, system freezes and I'm unable to login and I have to reboot.
ps -ax | grep sh | wc -l
shows that there are 654 zombie process and the number gets higher and higher each time.
ps -elf | grep Z
And it gives a lot of [sshd] 'defunct' processes. I checked the parent and it is sh(1).
I've checked many articles and many materials and nothing helped me.
Thank you for any help.