Skip to content

Commit

Permalink
avoid stw
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Mar 18, 2024
1 parent da3b6e3 commit 951e179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 951e179

Please sign in to comment.