Analyzer ngx-worker-id
Name
ngx-worker-id - Nginx Worker ID
This analyzer identifies and displays the worker process ID for Nginx-based applications including OpenResty, Kong, and APISIX. It helps administrators and developers track which worker process is handling specific requests or experiencing issues, facilitating targeted debugging and performance analysis in multi-worker environments.
Resource Category
Miscellaneous.
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-worker-id -p PID
# trace a shell command directly
orxray analyzer run ngx-worker-id -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Plain Texts
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.