Analyzer lj-jit-state

Name

lj-jit-state - Check The LuaJIT JIT State: on/off

This analyzer verifies the JIT compilation status in LuaJIT-based applications including OpenResty, Kong, and APISIX. It determines whether the JIT compiler is enabled or disabled, which directly impacts application performance. The analyzer helps ensure optimal runtime configurations and diagnose performance issues caused by unexpected JIT compiler states or misconfigurations.

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 lj-jit-state -p PID

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

Tracing Multiple Processes

Not supported.

Output Formats

  • Plain Texts

Output Example

[
  {
      "data": [
          [ "Lua VM Name", "State" ],
          [ "HTTP Lua VM", "off" ],
          [ "Stream Lua VM", "off" ]
      ],
      "title": "Luajit VM jit state",
      "type": "table",
      "ver": 1
  }
]

Author

The OpenResty Inc. Team.

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