Analyzer go-live-goroutines

Name

go-live-goroutines - dump the stacks of the living goroutines

This analyzer captures stack traces of all active goroutines in a running Go application. It generates flame graphs showing the distribution and call stacks of live goroutines, helping developers understand concurrency patterns, detect goroutine leaks, and analyze the runtime behavior of concurrent Go programs. The analyzer is particularly useful for troubleshooting goroutine proliferation and deadlock scenarios.

Resource Category

CPU.

Application Type & Technical Stack

  • Go

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run go-live-goroutines -p PID

# trace a shell command directly
orxray analyzer run go-live-goroutines -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Flame Graphs

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.