diff --git a/bootstrap/app.go b/bootstrap/app.go index c2e6465f10..7c0e126f04 100644 --- a/bootstrap/app.go +++ b/bootstrap/app.go @@ -10,7 +10,8 @@ import ( ) func Boot() { - debug.SetGCPercent(20) + debug.SetGCPercent(10) + debug.SetMemoryLimit(512 << 20) zhcn.RegisterGlobal()