Enable pprof service (#13979)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-12-23 11:39:10 +08:00 committed by GitHub
parent c65bb0d3c6
commit c5d91af794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -452,7 +452,6 @@ func (mr *MilvusRoles) Run(localMsg bool, alias string) {
}
metrics.ServeHTTP()
sc := make(chan os.Signal, 1)
signal.Notify(sc,
syscall.SIGHUP,

View File

@ -19,6 +19,9 @@ package metrics
import (
"net/http"
// nolint:gosec
_ "net/http/pprof"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/util/typeutil"