Analyzer ngx-open-file-cache-conf
Name
ngx-open-file-cache-conf - Nginx Open File Cache Configuration
This analyzer monitors the open file cache configurations in nginx-based applications such as OpenResty and Kong. It examines the open_file_cache directive settings including max cached entries, inactive timeout, and validation intervals across different contexts. The analyzer generates bar chart visualizations showing the distribution of cache parameters, helping administrators optimize file descriptor usage, reduce disk I/O overhead, and improve static content serving performance.
Resource Category
CPU.
Application Type & Technical Stack
- OpenResty
- Nginx
- 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-open-file-cache-conf -p PID
# trace a shell command directly
orxray analyzer run ngx-open-file-cache-conf -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-open-file-cache-conf -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run ngx-open-file-cache-conf --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Bar Charts
- Plain Texts
Output Example
[
{
"title": "Nginx Open File Cache Configuration Samples",
"subtitle": "",
"series": {
"data": {
"max": 100
},
"name": "Calls of ngx_open_cached_file"
},
"ver": 1,
"type": "bar"
}
]
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.