diff --git a/internal/utils/system_1.19.go b/internal/utils/system_1.19.go index 8ada108..5a267b2 100644 --- a/internal/utils/system_1.19.go +++ b/internal/utils/system_1.19.go @@ -16,7 +16,7 @@ func setMaxMemory(memoryGB int) { if memoryGB > 10 { maxMemoryBytes = int64(memoryGB-2) << 30 // 超过10G内存的允许剩余2G内存 } else { - maxMemoryBytes = (int64(memoryGB) << 30) * 100 / 80 // 默认 80% + maxMemoryBytes = (int64(memoryGB) << 30) * 80 / 100 // 默认 80% } debug.SetMemoryLimit(maxMemoryBytes)