How to find the performance bottleneck of ngx_lua? suggestion tools?

76 views
Skip to first unread message

范洪毅

unread,
Apr 23, 2014, 10:25:21 PM4/23/14
to openre...@googlegroups.com
hi:
    now   wo use ngx_lua online,
    qps 2000 ,cpu more than 60%,
   How to find   the performance bottleneck of ngx_lua? suggestion tools?

Yichun Zhang (agentzh)

unread,
Apr 23, 2014, 11:49:10 PM4/23/14
to openresty-en
Hello!
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
Reply all
Reply to author
Forward
0 new messages