Analyzer openresty-running-timers-fgraph

Name

openresty-running-timers-fgraph - Openresty Running Timer Flamegraph

This analyzer profiles the execution of running timer callbacks in Lua-land code within OpenResty and Kong applications. It captures stack traces during timer callback execution, generating flame graphs that visualize CPU time distribution across timer handlers. The analyzer helps identify performance bottlenecks in timer callbacks and understand the runtime behavior of scheduled tasks.

Resource Category

CPU.

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 openresty-running-timers-fgraph -p PID

# trace a shell command directly
orxray analyzer run openresty-running-timers-fgraph -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Flame Graphs

Author

The OpenResty Inc. Team.

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