aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-04-11 13:33:42 +0200
committerJoshua M. Boniface <joshua@boniface.me>2021-04-11 14:13:44 -0400
commit100fe40b0a0ad7349d8d1cd74237c4ed7aca1157 (patch)
tree90d8d8fb7e217c2aecfe031b9e5197251422bdfd
parent2197d2078335864e9b3e43bba2b59389811447d8 (diff)
Merge pull request #5769 from cvium/workstation-gc
Enable Workstation GC mode (cherry picked from commit f0625bb023b67f557802c8089c73b3e98859f3d3) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
-rw-r--r--Jellyfin.Server/Jellyfin.Server.csproj1
-rw-r--r--debian/conf/jellyfin5
-rw-r--r--fedora/jellyfin.env4
3 files changed, 10 insertions, 0 deletions
diff --git a/Jellyfin.Server/Jellyfin.Server.csproj b/Jellyfin.Server/Jellyfin.Server.csproj
index a25ddf513..bd353c3dd 100644
--- a/Jellyfin.Server/Jellyfin.Server.csproj
+++ b/Jellyfin.Server/Jellyfin.Server.csproj
@@ -9,6 +9,7 @@
<AssemblyName>jellyfin</AssemblyName>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
+ <ServerGarbageCollection>false</ServerGarbageCollection>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
diff --git a/debian/conf/jellyfin b/debian/conf/jellyfin
index 7cbfa88ee..9ebaf2bd8 100644
--- a/debian/conf/jellyfin
+++ b/debian/conf/jellyfin
@@ -33,6 +33,11 @@ JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"
# [OPTIONAL] run Jellyfin without the web app
#JELLYFIN_NOWEBAPP_OPT="--nowebclient"
+# [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
+# 0 = Workstation
+# 1 = Server
+#COMPlus_gcServer=1
+
#
# SysV init/Upstart options
#
diff --git a/fedora/jellyfin.env b/fedora/jellyfin.env
index bf64acd3f..56b7a3558 100644
--- a/fedora/jellyfin.env
+++ b/fedora/jellyfin.env
@@ -35,3 +35,7 @@ JELLYFIN_RESTART_OPT="--restartpath=/usr/libexec/jellyfin/restart.sh"
# [OPTIONAL] run Jellyfin without the web app
#JELLYFIN_NOWEBAPP_OPT="--noautorunwebapp"
+# [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
+# 0 = Workstation
+# 1 = Server
+#COMPlus_gcServer=1