We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This tool is very useful in locating the infinite Lua loop that keeps the Nginx worker spinning with 100% CPU usage. -ngx-lua-bt
That is exactly the problem I want to debug. Could you add more detail on what to look for when using this script? Is it just a backtrace?
The text was updated successfully, but these errors were encountered:
@xeoncross Yes, it dumps a Lua-land backtrace.
You may also find the gdb command "lbt" more useful for this because it also dumps the local Lua variable values in each Lua function frame: https://github.com/openresty/nginx-gdb-utils#lbt
Also, the Lua-land flame graphs are also good for this: https://github.com/openresty/stapxx#lj-lua-stacks and can give you the big picture (like, you may be unlucky to run in a Lua backtrace that is actually not the dominating thing).
Sorry, something went wrong.
No branches or pull requests
That is exactly the problem I want to debug. Could you add more detail on what to look for when using this script? Is it just a backtrace?
The text was updated successfully, but these errors were encountered: