Groups
Sign in
Groups
openresty-en
Conversations
Labels
About
Send feedback
Help
How to find the performance bottleneck of ngx_lua? suggestion tools?
78 views
lua
nginx
openresty
stap
Skip to first unread message
范洪毅
unread,
Apr 23, 2014, 10:25:21 PM
4/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
4/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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