Analyzer proc-snap

Name

proc-snap - Create a snapshot of the process (only for expert)

This analyzer creates a lightweight snapshot of a running process by forking it into a separate process space. The snapshot preserves the exact memory state and execution context at the moment of capture, allowing for safe inspection and analysis without affecting the original process. This is an advanced feature designed for expert users who need to perform detailed runtime analysis or debugging on production systems with minimal performance impact.

Resource Category

Miscellaneous.

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 proc-snap -p PID

# trace a shell command directly
orxray analyzer run proc-snap -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run proc-snap -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run proc-snap --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Plain Texts

Author

The OpenResty Inc. Team.

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