Analyzer ngx-dump-all-reqs

Name

ngx-dump-all-reqs - Dump all Nginx HTTP Requests

This analyzer captures comprehensive information about all active HTTP requests across all worker processes in Nginx-based web servers including OpenResty. It samples requests during the specified time window, extracting detailed request state and metadata. The analyzer provides text-based output showing the complete request landscape, helping troubleshoot system-wide issues, monitor concurrent request processing, and identify problematic request patterns.

Resource Category

Network I/O.

Application Type & Technical Stack

  • OpenResty
  • Nginx

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-dump-all-reqs -p PID

# trace a shell command directly
orxray analyzer run ngx-dump-all-reqs -c SHELL_CMD

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

# trace any processes started from the specified executable path.
orxray analyzer run ngx-dump-all-reqs --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Plain Texts

Output Example

http request, No. 1
GET /example1 HTTP/1.1
Upgrade: websocket
Host: test.com
http request, No. 2
GET /example2 HTTP/1.1
Upgrade: websocket
Host: test.com

Author

The OpenResty Inc. Team.

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