Hello! On Wed, Apr 23, 2014 at 7:25 PM, 范洪毅 wrote: > now wo use ngx_lua online, > qps 2000 ,cpu more than 60%, > How to find the performance bottleneck of ngx_lua? suggestion tools? > The best tools are the various Flame Graph tools for both on-CPU and off-CPU, for both C-land and Lua-land: https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt https://github.com/agentzh/stapxx#lj-lua-stacks https://github.com/agentzh/nginx-systemtap-toolkit#ngx-sample-lua-bt https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt-off-cpu They're good for both offline profiling during development and offline profiling in production. We've been heavily relying on these tools to optimize our global online systems at CloudFlare. Regards, -agentzh