Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool to analyse goroutine dump #3

Open
bboreham opened this issue Jun 30, 2021 · 1 comment
Open

Tool to analyse goroutine dump #3

bboreham opened this issue Jun 30, 2021 · 1 comment

Comments

@bboreham
Copy link
Owner

bboreham commented Jun 30, 2021

The goroutine dump from http://xxx/debug/pprof/goroutine?debug=2 can tell you a lot, but often only after much laborious analysis.

This tool could provide:

  • a break-down of how many goroutines are in runnable, select, chan wait, etc., states.
  • grouping together many similar goroutines, to allow focus on the outliers. E.g. blocked in select state in net/http.(*persistConn).writeLoop()
  • identifying classes of wait times - all goroutines blocked for 1 minute, 5 minutes, 8384 minutes.

Rich detail here on the different data sources - the binary format dump does not contain enough information to work from.

@aschmahmann
Copy link

aschmahmann commented Jul 9, 2021

You might find https://github.com/whyrusleeping/stackparse to be a useful starting point (or place to file PRs against). I've found it useful in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants