diff --git a/server/server.go b/server/server.go index 54ad808c..8537206f 100644 --- a/server/server.go +++ b/server/server.go @@ -1541,6 +1541,11 @@ func (s *Server) Start() { s.grRunning = true s.grMu.Unlock() + // Pprof http endpoint for the profiler. + if opts.ProfPort != 0 { + s.StartProfiler() + } + if opts.ConfigFile != _EMPTY_ { s.Noticef("Using configuration file: %s", opts.ConfigFile) } @@ -1740,11 +1745,6 @@ func (s *Server) Start() { }) } - // Pprof http endpoint for the profiler. - if opts.ProfPort != 0 { - s.StartProfiler() - } - if opts.PortsFileDir != _EMPTY_ { s.logPorts() }