From 5b29517c56e3b5cb66c0bd8bce83a6bb5d1240ab Mon Sep 17 00:00:00 2001 From: Kellen Swain Date: Mon, 25 Aug 2025 18:39:24 +0000 Subject: [PATCH] adding mutex and contention profile gathering --- cmd/epp/runner/runner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/epp/runner/runner.go b/cmd/epp/runner/runner.go index ea0fe56e6..04eb5048c 100644 --- a/cmd/epp/runner/runner.go +++ b/cmd/epp/runner/runner.go @@ -25,6 +25,7 @@ import ( "net/http" "net/http/pprof" "os" + "runtime" "sync/atomic" "github.com/go-logr/logr" @@ -228,6 +229,8 @@ func (r *Runner) Run(ctx context.Context) error { setupLog.Error(err, "Failed to setup pprof handlers") return err } + runtime.SetMutexProfileFraction(1) + runtime.SetBlockProfileRate(1) } err = r.parsePluginsConfiguration(ctx)