Analyzer ngx-loaded-modules
Name
ngx-loaded-modules - Nginx Loaded Modules
This analyzer retrieves all the Nginx modules loaded in the target process. It enumerates the module list from the Nginx internals and outputs a table containing the index and name of each loaded module. This is useful for inspecting which modules are compiled into or dynamically loaded by the running Nginx instance.
Resource Category
Memory.
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 ngx-loaded-modules -p PID
# trace a shell command directly
orxray analyzer run ngx-loaded-modules -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Tables
- Plain Texts
Output Example
{
"title": "",
"type": "table",
"ver": 1,
"data": [
["Index", "Module Name"],
["1", "ngx_core_module"],
["2", "ngx_errlog_module"],
["3", "ngx_conf_module"],
["4", "ngx_openssl_module"],
["5", "ngx_regex_module"],
["6", "ngx_events_module"],
["7", "ngx_event_core_module"],
["8", "ngx_epoll_module"]
]
}
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.