mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Enable pprof service (#13979)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
c65bb0d3c6
commit
c5d91af794
@ -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,
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user