mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #8783] [MERGED] Allow limiting parallel image encodings to reduce memory usage #11673
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#11673
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/8783
Author: @hannesbraun
Created: 11/21/2022
Status: ✅ Merged
Merged: 1/16/2023
Merged by: @crobibero
Base:
master← Head:limit-parallel-image-encoding📝 Commits (1)
c8b4c89Allow limiting parallel image encodings to reduce memory usage📊 Changes
2 files changed (+35 additions, -2 deletions)
View changed files
📝
MediaBrowser.Model/Configuration/ServerConfiguration.cs(+6 -0)📝
src/Jellyfin.Drawing/ImageProcessor.cs(+29 -2)📄 Description
Changes
This change allows specifying the environment variable
JELLYFIN_PARALLEL_IMAGE_ENCODING_LIMITto limit the number of parallel image encodings as those tend to consume a lot of memory (potentially crashing the process as the system runs out of memory). If set, the number of parallel encodings will be limited to that number. Otherwise, the behavior should be unaffected.The usage of an environment variable made sense here to me, as this setting conceptually didn't really seem to fit into the regular application settings.
Issues
This solves the issue I described in this comment: https://github.com/jellyfin/jellyfin/issues/6877#issuecomment-1257031371
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.