From 951e179f0b1250878c8827efa767e85f9c626ca3 Mon Sep 17 00:00:00 2001 From: husharp Date: Mon, 18 Mar 2024 18:20:23 +0800 Subject: [PATCH] avoid stw Signed-off-by: husharp --- server/api/pprof.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api/pprof.go b/server/api/pprof.go index 900c48f8368..5202f03af3f 100644 --- a/server/api/pprof.go +++ b/server/api/pprof.go @@ -61,7 +61,8 @@ func (h *pprofHandler) PProfZip(w http.ResponseWriter, r *http.Request) { debug int second int }{ - {name: "goroutine", debug: 2}, + // debug=2 causes STW when collecting the stacks. See https://github.com/pingcap/tidb/issues/48695. + {name: "goroutine", debug: 1}, {name: "heap", gc: 1}, {name: "mutex"}, {name: "allocs"},