1) nginx cpu占用率过高,可能是CPU密集型计算导致堵塞的.
分析工具 https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt
https://github.com/agentzh/stapxx#ngx-lj-lua-stacks
2) nginx cpu占用率过低,可能是IO堵塞,比如文件IO,网络IO.
分析工具: https://github.com/agentzh/stapxx#epoll-loop-blocking-distr