Analyzer lj-config

Name

lj-config - Configurations for LuaJIT

This analyzer extracts and displays runtime configuration parameters of LuaJIT virtual machines in applications such as OpenResty, Kong, and APISIX. It captures key settings including JIT compiler status, garbage collection parameters (GC pause and step multiplier), GC state, memory limits, and optimization flags. The analyzer supports both HTTP and Stream Lua modules in OpenResty. Configuration data is output in compact JSON format, enabling administrators to quickly verify LuaJIT settings, compare configurations across instances, and diagnose configuration-related performance issues.

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-config -p PID

# trace a shell command directly
orxray analyzer run lj-config -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Plain Texts

Output Example

GC: setpause: 200, setstepmul: 200
GC stop: false

Author

The OpenResty Inc. Team.

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