From ed0f1c3d2f6731bf3785781ef55d0b30010a82f2 Mon Sep 17 00:00:00 2001 From: Aleksey Leshchuk Date: Mon, 8 Dec 2025 09:51:14 +0300 Subject: [PATCH] Preventing default GC setting from eating all node RAM Having 400 as a default GC threshold makes lua anable to recover memory at all! Eating out every single byte on node cluster. --- prosody/rootfs/defaults/prosody.cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosody/rootfs/defaults/prosody.cfg.lua b/prosody/rootfs/defaults/prosody.cfg.lua index 04d752d9ab..21f5fb7864 100644 --- a/prosody/rootfs/defaults/prosody.cfg.lua +++ b/prosody/rootfs/defaults/prosody.cfg.lua @@ -10,7 +10,7 @@ {{ $ENABLE_VISITORS := .Env.ENABLE_VISITORS | default "0" | toBool -}} {{ $ENABLE_S2S := or $ENABLE_VISITORS ( .Env.PROSODY_ENABLE_S2S | default "0" | toBool ) }} {{ $GC_TYPE := .Env.GC_TYPE | default "incremental" -}} -{{ $GC_INC_TH := .Env.GC_INC_TH | default 400 -}} +{{ $GC_INC_TH := .Env.GC_INC_TH | default 200 -}} {{ $GC_INC_SPEED := .Env.GC_INC_SPEED | default 250 -}} {{ $GC_INC_STEP_SIZE := .Env.GC_INC_STEP_SIZE | default 13 -}} {{ $GC_GEN_MIN_TH := .Env.GC_GEN_MIN_TH | default 20 -}}