diff --git a/docs/reference.md b/docs/reference.md index 675a2b246..d73813c16 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -1936,6 +1936,21 @@ profile at a time, so a second `magpie cpu` while one records is refused 409; one whose caller hangs up stops recording. The route answers the same callers as `/v1/magpie/heap`, and refuses the same ones 403. +`magpie goroutines []` is for a report of magpie stuck at something +while it goes on running, such as an app that kept an old partner list for +days (#3362): killing it to look would end what was stuck. It asks the same +running magpie for `GET /v1/magpie/goroutines`, every goroutine's stack as +text (`runtime/pprof`'s `goroutine` profile at debug 2, the form a crash +prints): each goroutine's state and how long it has waited +(`[select, 4320 minutes]`), its frames with source lines, and who started +it. Arguments are printed as numbers, never what they point at, so it holds +no keys or messages. Nothing is stopped. It writes the dump to ``, +else `magpie-goroutines--