this post was submitted on 23 Apr 2026
55 points (98.2% liked)

Selfhosted

56957 readers
722 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

=> 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 . 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 ?

top 28 comments
sorted by: hot top controversial new old
[–] zewm@lemmy.world 23 points 15 hours ago (1 children)

Awww man. Here I was thinking we were having a movie night.

[–] melfie@lemmy.zip 4 points 14 hours ago (1 children)

Right? I’ve got the original and the 90s version in Jellyfin on my home lab server. 🧟‍♂️

[–] non_burglar@lemmy.world 11 points 16 hours ago (1 children)

Zombies that stick around for more than a few seconds indicate a signal problem in the parent process, where its init is stuck in the "wait" state, so the entry remains in the PID table.

It could be harmless, but it could become a problem if you need the resources. Curl shouldn't be doing this on its own.

[–] irmadlad@lemmy.world 2 points 16 hours ago (2 children)

It could be harmless, but it could become a problem if you need the resources.

That's the thing. None of them are consuming resources. I guess I should just ignore them, but it irritates me when I start my server, to see zombie processes. Makes me think something is askew.

[–] jj4211@lemmy.world 2 points 12 hours ago (1 children)

Zombie processes do not use resources, well, a little, it's basically an entry describing how it exited.

The parent process is the thing keeping the zombie entry open. Killing it's parent should work if they bother you.

[–] non_burglar@lemmy.world 1 points 11 hours ago

Zombie processes do not use resources, well, a little, it's basically an entry describing how it exited.

Agreed, but a very poorly-written program having a hanging memory or disk write, or a file lock could become a problem, especially if hundreds or thousands of zombies are waiting for something.

[–] GreenKnight23@lemmy.world 2 points 15 hours ago

that sounds like poor garbage collection in an application.

I've written software that had similar issues when writing to files and I failed to "close" the file after writing.

processes stay open, files stay open. 500 byte processes times 10000 orphaned process can make for a bad time.

[–] folekaule@lemmy.world 6 points 16 hours ago (1 children)

No idea about your specific case, but in the past when I've had frequent zombies it's been due to some blocking network process; typically NFS mounts.

They don't use any resources, but I agree they're annoying and could indicate some underlying issue.

I would check for issues with I/O and network access, especially anything that happens at kernel level. Look for anything suspicious in dmesg.

[–] irmadlad@lemmy.world 3 points 16 hours ago

due to some blocking network process; typically NFS mounts.

I'll check that out.

[–] tychosmoose@piefed.social 4 points 17 hours ago (1 children)

Zero zombies here. I have a couple of Debian servers and one repeatedly upgraded Ubuntu on noble numbat that I'm too lazy to migrate to Debian. None have zombies.

Do you run a DE? Mine are headless.

[–] irmadlad@lemmy.world 3 points 16 hours ago (1 children)

Do you run a DE?

I'm not familiar with the acronym. I'm going to assume Desktop Environment. My servers are all headless as well

[–] tychosmoose@piefed.social 2 points 13 hours ago (1 children)

Sorry. That is what I meant.

[–] irmadlad@lemmy.world 2 points 13 hours ago

s'ok bro. I'm not on all cylinders today.

[–] BakedCatboy@lemmy.ml 4 points 17 hours ago (1 children)

I got a few on my laptop but none on either of my long running homelab boxes (70-80 days uptime). On my laptop they all seem related to espeak, the tts program. Is there any pattern in what processes yours are from?

[–] irmadlad@lemmy.world 3 points 16 hours ago (1 children)

my long running homelab boxes (70-80 days uptime)

Ahh see I shut down my servers at night. I just couldn't justify having them run while I was sleeping, and since I am the only user.

[–] BakedCatboy@lemmy.ml 2 points 14 hours ago

Makes sense. I share my media library with 10-15 friends so there's usually a few streams late at night, and scrubs, container updates, and backups run early morning at like 2-4am.

[–] frongt@lemmy.zip 3 points 17 hours ago (1 children)

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?

[–] irmadlad@lemmy.world 2 points 17 hours ago (2 children)

@BakedCatboy@lemmy.ml @frongt@lemmy.zip Most of them are from [curl] but one is from [health.sh]. I am assuming one of the docker containers uses curl in it's processes as I have not initiated any curl commands.

[–] someguy@lemmyland.com 2 points 12 hours ago* (last edited 12 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.

[–] frongt@lemmy.zip 1 points 16 hours ago (1 children)

What is their parent process?

[–] irmadlad@lemmy.world 1 points 16 hours ago* (last edited 16 hours ago) (1 children)

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

[–] surewhynotlem@lemmy.world 4 points 16 hours ago (1 children)
[–] irmadlad@lemmy.world 1 points 16 hours ago (1 children)

7791 7768 201 /usr/sbin/netdata -u netdat 8.8 0.5 01:49:50

[–] frongt@lemmy.zip 1 points 15 hours ago (1 children)

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

[–] NotEasyBeingGreen@slrpnk.net 3 points 15 hours ago (1 children)

Seems like someone already did this:

https://github.com/netdata/netdata/issues/20565

Maybe upgrading will fix it?

[–] irmadlad@lemmy.world 1 points 15 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.