Explorar o código

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>
Bond-009 %!s(int64=4) %!d(string=hai) anos
pai
achega
100fe40b0a
Modificáronse 3 ficheiros con 10 adicións e 0 borrados
  1. 1 0
      Jellyfin.Server/Jellyfin.Server.csproj
  2. 5 0
      debian/conf/jellyfin
  3. 4 0
      fedora/jellyfin.env

+ 1 - 0
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>

+ 5 - 0
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
 #

+ 4 - 0
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