=> There are 90 zombie processes.

On one of my Homelab servers running Ubuntu Jammy, I always seem to get zombie processes. A quick check with ps -eo pid,ppid,stat,cmd | grep -w Z shows them all <defunct>. It just bugs me. I shut down the server in the most nicest of ways I know how with sudo shutdown -h now but I always get zombie processes shown on start up.

Am I missing something? Do these show up on your servers? How do you deal with them besides just ignoring them if they are <defunct>?

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 hours ago

    I’ve never run into a situation where it’s a problem. But I just checked one of my Ubuntu servers and don’t have any. What were the processes doing? What do they belong to?

      • someguy@lemmyland.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        5 hours ago

        If you use containers with health checks (including with curl), you need to tell docker (or podman) to provide an init process to reap child processes. For docker that means providing --init when running a container. It’s a pretty common problem.

        • irmadlad@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          9 hours ago

          Lots of these: Zombie PID: 230650 | Parent PID: 7791 | Parent Name: spawn-unnamed

          Two of those: Zombie PID: 61072 | Parent PID: 7791 | Parent Name: bash

          Lots of these: Zombie PID: 56798 | Parent PID: 7791 | Parent Name: health.sh

          Lots of these: Zombie PID: 16761 | Parent PID: 7646 | Parent Name: curl

          …and a box of naked lady tee’s

              • frongt@lemmy.zip
                link
                fedilink
                English
                arrow-up
                2
                ·
                8 hours ago

                Sounds like netdata doing health checks but not always reaping its children. If you can reproduce it, I’d file a bug report.

                  • irmadlad@lemmy.worldOP
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    7 hours ago

                    Hey bro, thanks for the lead! I will read the issue report and check if netdata is current.

                    @ilyam8 - adding to it here, netdata does leave tons of zombies around, this is not a “cannot reproduce” (not sure why that tag was added without even the minimal response, and then removed needs triage on top of that, so this ticket just dies off) One simply needs a running netdata instance and let it run a while. With time, 1, three and then tens of zombies will be listed at login.