Add note on dynamic memory management for restarts

This commit is contained in:
2026-03-06 10:56:23 +01:00
parent 88bd83b07e
commit 70fea39d03
2 changed files with 3 additions and 0 deletions

View File

@@ -395,6 +395,7 @@ func runServer(ctx context.Context) error {
// Set GC percent if not configured
if os.Getenv(envGOGC) == "" {
// trigger GC when heap grows 15% above the previous live set
debug.SetGCPercent(15)
}
runtime.SystemdNotify(true, "running")