diff --git a/internal/http/server.go b/internal/http/server.go index 8116da19ee..a9f53c9ba7 100644 --- a/internal/http/server.go +++ b/internal/http/server.go @@ -242,9 +242,12 @@ func ServeHTTP() { bindAddr := getHTTPAddr() log.Info("management listen", zap.String("addr", bindAddr)) server = &http.Server{Handler: metricsServer, Addr: bindAddr, ReadTimeout: 10 * time.Second} - // enable mutex && block profile, sampling rate 10% - runtime.SetMutexProfileFraction(10) - runtime.SetBlockProfileRate(10) + + if runtime.GOARCH != "arm64" { + // enable mutex && block profile, sampling rate 10% + runtime.SetMutexProfileFraction(10) + runtime.SetBlockProfileRate(10) + } if err := server.ListenAndServe(); err != nil { log.Error("handle metrics failed", zap.Error(err))