stuckgo
v0.1.0Find what a stuck Go program is waiting on from a goroutine dump, with no connection to it.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
go_goroutine_compare Compare two Go goroutine dumps
Compares two goroutine dumps of one Go program taken some time apart, and shows which stacks are growing and which goroutine IDs never moved, which is stronger evidence of a leak than one dump. It never connects to the program.
| Parameter | Type | Description |
|---|---|---|
after | string | The later goroutine dump's text |
after_path | string | Path to a file with the later dump |
before | string | The earlier goroutine dump's text |
before_path | string | Path to a file with the earlier dump |
go_goroutine_review Review a Go goroutine dump
Finds what a stuck or leaking Go program is waiting on, from a goroutine dump: /debug/pprof/goroutine?debug=2 or debug=1, a panic traceback, or SIGQUIT output. Groups identical stacks, separates normal idle goroutines, and flags channel leaks, lock pile-ups with possible holders, WaitGroups that never finish, full database pools, HTTP calls with no timeout and nil channels. It only reads the text you give it and never connects to the program. Findings are leads.
| Parameter | Type | Description |
|---|---|---|
dump | string | Goroutine dump text. Give this or path |
path | string | Path to a file holding a goroutine dump. Prefer this for large dumps. Give this or dump |