stuckgo

v0.1.0
io.github.GillMacedo/stuckgo Checked 3 days ago Published 1 month ago

Find 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.

ParameterTypeDescription
afterstringThe later goroutine dump's text
after_pathstringPath to a file with the later dump
beforestringThe earlier goroutine dump's text
before_pathstringPath 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.

ParameterTypeDescription
dumpstringGoroutine dump text. Give this or path
pathstringPath to a file holding a goroutine dump. Prefer this for large dumps. Give this or dump