Skip to content

Commit

Permalink
conprof: use debug=1 for goroutine profile to avoid STW (#205) (#223)
Browse files Browse the repository at this point in the history
close #220
  • Loading branch information
ti-chi-bot authored Dec 20, 2023
1 parent 44845a2 commit 45a71f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions component/conprof/scrape/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ func goAppProfilingConfig(cfg config.ContinueProfilingConfig) *config.ProfilingC
Path: "/debug/pprof/heap",
},
"goroutine": &config.PprofProfilingConfig{
Path: "/debug/pprof/goroutine",
Params: map[string]string{"debug": "2"},
Path: "/debug/pprof/goroutine",
// debug=2 causes STW when collecting the stacks. See https://github.com/pingcap/tidb/issues/48695.
Params: map[string]string{"debug": "1"},
},
"mutex": &config.PprofProfilingConfig{
Path: "/debug/pprof/mutex",
Expand Down

0 comments on commit 45a71f1

Please sign in to comment.