From 2633d438970eb361f7ae9fe425b637ce21b18e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 22 Nov 2023 17:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=80=E5=A4=A7=E5=86=85?= =?UTF-8?q?=E5=AD=98=E7=94=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/system_1.19.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/system_1.19.go b/internal/utils/system_1.19.go index 3cc06ab..f51b4b3 100644 --- a/internal/utils/system_1.19.go +++ b/internal/utils/system_1.19.go @@ -13,6 +13,6 @@ func setMaxMemory(memoryGB int) { memoryGB = 1 } - var maxMemoryBytes = (int64(memoryGB) << 30) * 75 / 100 // 默认 75% + var maxMemoryBytes = (int64(memoryGB) << 30) * 80 / 100 // 默认 80% debug.SetMemoryLimit(maxMemoryBytes) }