Analyzer ngx-upstream-ssl-session-reused

Name

ngx-upstream-ssl-session-reused - Upstream SSL/TLS Session Reused Statistics

This analyzer monitors SSL/TLS session reuse for upstream backend connections in Nginx-based applications such as OpenResty and Kong. It tracks how effectively TLS sessions are being reused when connecting to upstream servers, measuring the ratio of resumed sessions to new handshakes. The analyzer generates bar charts showing session reuse patterns over time, helping optimize upstream connection performance by identifying opportunities to improve session caching and reduce the overhead of TLS handshakes with backend services.

Resource Category

Network I/O.

Application Type & Technical Stack

  • OpenResty
  • 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-upstream-ssl-session-reused -p PID

# trace a shell command directly
orxray analyzer run ngx-upstream-ssl-session-reused -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-upstream-ssl-session-reused -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run ngx-upstream-ssl-session-reused --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Bar Charts
  • Plain Texts

Author

The OpenResty Inc. Team.

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