diff --git a/main/main.go b/main/main.go index e9dca8643a..af78b83f48 100644 --- a/main/main.go +++ b/main/main.go @@ -8,6 +8,7 @@ import ( "os" "os/signal" "path/filepath" + "runtime" "strings" "syscall" @@ -119,6 +120,9 @@ func main() { os.Exit(-1) } + // Explicitly triggering GC to remove garbage from config loading. + runtime.GC() + osSignals := make(chan os.Signal, 1) signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM)