Log main golang runtime env vars

This commit is contained in:
Wojciech Tyczyński
2022-03-03 10:18:21 +01:00
parent 267272efe0
commit ef2e32ab65
5 changed files with 11 additions and 0 deletions

View File

@@ -656,6 +656,8 @@ func (s *ProxyServer) Run() error {
// To help debugging, immediately log version
klog.InfoS("Version info", "version", version.Get())
klog.InfoS("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK"))
// TODO(vmarmol): Use container config for this.
var oomAdjuster *oom.OOMAdjuster
if s.OOMScoreAdj != nil {