Analyzer lj-lua-new-timer-errors

Name

lj-lua-new-timer-errors - Nginx Lua Tracks Timer Creation Errors

This analyzer monitors and tracks errors that occur during timer creation in OpenResty and Kong applications. It captures failed ngx.timer.at and ngx.timer.every calls along with their error reasons, generating bar chart visualizations of error distributions. The analyzer helps identify timer resource exhaustion issues and diagnose problems related to timer creation limits.

Resource Category

Miscellaneous.

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 lj-lua-new-timer-errors -p PID

# trace a shell command directly
orxray analyzer run lj-lua-new-timer-errors -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Bar Charts
  • Plain Texts

Output Example

[{
  "type": "bar",
  "title": "Nginx Lua Timer Creation Errors",
  "series": {
    "name": "Calls",
    "data": {1: 3, 2: 8}
  }
}]

Author

The OpenResty Inc. Team.

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