From cad3fb5640948212e261e6cf704821794cbea68d Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 17 Jul 2024 02:40:14 +0800 Subject: [PATCH] chore: using aggressive gc strategies for wasm Signed-off-by: Zxilly --- internal/utils/gc_wasm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/utils/gc_wasm.go b/internal/utils/gc_wasm.go index 22f87e19f8..17dc349645 100644 --- a/internal/utils/gc_wasm.go +++ b/internal/utils/gc_wasm.go @@ -6,8 +6,8 @@ import ( "runtime/debug" ) -// WasmMemoryLimit use 3 GB memory limit -const WasmMemoryLimit = 3 * 1024 * 1024 * 1024 +// WasmMemoryLimit use 2 GB memory limit +const WasmMemoryLimit = 2 * 1024 * 1024 * 1024 func ApplyMemoryLimit() { debug.SetMemoryLimit(WasmMemoryLimit)