OpenResty XRay
Aug 11, 2026
OpenResty XRay
Updated Aug 11, 2026
8 mins read
Find Leaked Lua Tables: the registry / _LOADED (package.loaded) Reference Path in OpenResty XRay
- How LuaJIT manages memory
- OpenResty XRay’s command-line tools
- A leaking Lua table example
- Breaking down memory by LuaJIT GC object type
- Reading the lj-gco-ref flame graph: registry, _LOADED, package.loaded
- Fully-automated Lua memory leak analysis

- How LuaJIT manages memory
- OpenResty XRay’s command-line tools
- A leaking Lua table example
- Breaking down memory by LuaJIT GC object type
- Reading the lj-gco-ref flame graph: registry, _LOADED, package.loaded
- Fully-automated Lua memory leak analysis