From 19397a56833136c9b9c8bc8d0ac4ae78b27955da Mon Sep 17 00:00:00 2001 From: Neil Twigg Date: Wed, 16 Aug 2023 17:00:07 +0100 Subject: [PATCH] Don't set block profile rate Signed-off-by: Neil Twigg --- server/server.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/server.go b/server/server.go index e1011bae..8ca5a3c3 100644 --- a/server/server.go +++ b/server/server.go @@ -2093,9 +2093,6 @@ func (s *Server) Start() { // Pprof http endpoint for the profiler. if opts.ProfPort != 0 { s.StartProfiler() - } else { - // Enable blocking profile even if no port defined since profiling is always possible over $SYS requests - runtime.SetBlockProfileRate(1) } if opts.ConfigFile != _EMPTY_ { @@ -2697,9 +2694,6 @@ func (s *Server) StartProfiler() { s.profiler = l s.profilingServer = srv - // Enable blocking profile - runtime.SetBlockProfileRate(1) - go func() { // if this errors out, it's probably because the server is being shutdown err := srv.Serve(l)