mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Jellyfin creates enormous amounts of processes #6764
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SomeBelgianDude on GitHub (Feb 20, 2025).
Description of the bug
Since updating to 10.10.5, but also in 10.10.6, Jellyfin creates an enormous amount of threads, even leading to warnings in the log.
Reproduction steps
Start Jellyfin
Have people start and stop streaming
Slowly threads start accumulating
What is the current bug behavior?
Hundreds of threads
What is the expected correct behavior?
A reasonable amount of threads
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.6
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
Additional information
No response
@gnattu commented on GitHub (Feb 21, 2025):
These are threads not processes. On Linux even threads have their own PID. The logs you are seeing is printed by the web service where the heartbeat took more than 1 second to respond but the reason is not necessarily threadpool starvation, on a slow cpu a busy server can trigger this easily.
@matt1432 commented on GitHub (Feb 22, 2025):
I'm having the exact same issue.
I found this issue here: https://github.com/DonutWare/Fladder/issues/121
I used the script they used and I had the same results. The script counted upwards of 12000
ffmpeg instances runningjellyfin threads. Ever since I started monitoring it, Jellyfin starts being slow around a thousand or two and needs to be restarted.@gnattu commented on GitHub (Feb 22, 2025):
These are not ffmpeg instances. having a cli parameter telling the server where the ffmpeg is does not mean running ffmpeg, the main process is still jellyfin.
@matt1432 commented on GitHub (Feb 22, 2025):
Oh right my bad
@matt1432 commented on GitHub (Feb 26, 2025):
@SomeBelgianDude Do you use Jellystat? I've been doing some tests and it seems like Jellystat is causing this issue
@SomeBelgianDude commented on GitHub (Feb 26, 2025):
Can confirm.
I will disable it and check it out.
@mellow129 commented on GitHub (Feb 27, 2025):
I migrated from Emby to Jellyfin in January.
Jellyfin has been running great until about a week ago. I started seeing load averages reach 700-ish and thread counts around 12-14K. The JF server would become slow to unresponsive pretty early in that upward trend. I would just manually restart the service and move on.
I woke up early this morning to texts that our server was having issues. I restarted the service, checked the metrics, and logs. I decided to check this project page for issues and low and behold found this thread. Thanks for posting.
I setup Jellystat about a week ago so the time frame that this started happening does coincide. I'm gonna shutdown that stack for the weekend and see if the problem goes away.
Thanks @SomeBelgianDude and @matt1432
Update: 7 days with the Jellystat stack shutdown and no new events have occurred.
@jellyfin-bot commented on GitHub (Jul 5, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@JPVenson commented on GitHub (Jul 8, 2025):
fixed by #14281