Analyzer libc-dump-mem

Name

libc-dump-mem - Dump the used memory allocated by malloc and related functions

This analyzer dumps the contents of memory regions allocated by malloc and related functions in C-based applications. It captures memory addresses and sizes of allocated blocks, and retrieves their contents for analysis. The analyzer generates output files containing the dumped memory data, enabling detailed inspection of in-use memory regions. This is particularly useful for debugging memory leaks.

Resource Category

Memory.

Application Type & Technical Stack

  • All

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 libc-dump-mem -p PID

# trace a shell command directly
orxray analyzer run libc-dump-mem -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.