Analyzer ngx-read-req-body-packets

Name

ngx-read-req-body-packets - Capture the packets of the HTTP request that the read body time is greater than the threshold

This analyzer captures network packets for HTTP requests where the request body reading time exceeds specified thresholds in NGINX-based applications. It monitors the duration of request body reception and records packet-level data for slow requests. The analyzer generates PCAP files containing the captured packets, enabling analysis of network-level issues affecting request body transmission. This is useful for diagnosing slow client uploads, network congestion, or client-side performance problems impacting request processing time.

Resource Category

Network I/O.

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-read-req-body-packets -p PID

# trace a shell command directly
orxray analyzer run ngx-read-req-body-packets -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-read-req-body-packets -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run ngx-read-req-body-packets --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.