+ config: add setting "mem_gc_percentage"
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"sync"
|
||||
"syscall"
|
||||
@@ -209,6 +210,11 @@ func run(args options) {
|
||||
log.Info("Configuration file is OK")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if config.MemGCPercent != 0 {
|
||||
debug.SetGCPercent(int(config.MemGCPercent))
|
||||
log.Debug("Set SetGCPercent=%d", config.MemGCPercent)
|
||||
}
|
||||
}
|
||||
|
||||
// 'clients' module uses 'dnsfilter' module's static data (dnsfilter.BlockedSvcKnown()),
|
||||
|
||||
Reference in New Issue
Block a user