Analyzer go-memory

Name

go-memory - Go-Land Memory Breakdown

This analyzer provides detailed memory usage breakdown for Go applications, including heap allocations, stack usage, and garbage collection statistics. It captures memory consumption across different allocation sites and object types. The analyzer helps identify memory leaks, optimize memory usage, and understand the memory footprint characteristics of Go applications.

Resource Category

Memory.

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-memory -p PID

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

Tracing Multiple Processes

Not supported.

Output Formats

  • Plain Texts

Author

The OpenResty Inc. Team.

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