diff --git a/cmd/alice-lg/main.go b/cmd/alice-lg/main.go index bb9a512..9e07301 100644 --- a/cmd/alice-lg/main.go +++ b/cmd/alice-lg/main.go @@ -7,6 +7,7 @@ import ( "log" "os" "runtime" + "runtime/debug" "runtime/pprof" "time" @@ -83,6 +84,9 @@ func main() { log.Fatal(err) } + // Tune garbage collection + debug.SetGCPercent(10) + // Setup local routes store and use backend from configuration var ( neighborsBackend store.NeighborsStoreBackend = memory.NewNeighborsBackend()