Analyzer ngx-graceful-exits

Name

ngx-graceful-exits - Nginx Graceful Exit Event

This analyzer monitors graceful exit events in Nginx-based applications including OpenResty, OpenResty Edge, Kong, and APISIX. It captures stack traces when the Nginx worker processes receive shutdown signals and begin their graceful termination sequence. The analyzer helps diagnose issues related to worker process lifecycle management, connection draining, and proper cleanup during server restarts or reloads.

Resource Category

Miscellaneous.

Application Type & Technical Stack

  • OpenResty
  • Nginx
  • Kong
  • APISIX

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 ngx-graceful-exits -p PID

# trace a shell command directly
orxray analyzer run ngx-graceful-exits -c SHELL_CMD

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

# trace any processes started from the specified executable path.
orxray analyzer run ngx-graceful-exits --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.