openresty cpu占用高, 上火焰图,大家帮忙分析下问题

118 views
Skip to first unread message

kfli...@gmail.com

unread,
Oct 9, 2017, 5:43:42 AM10/9/17
to openresty
openresty 1.11.2.2

火焰图是用openresty-systemtap-toolkit/sample-bt  生成的,
图中看luaopen_string占用了大量时间, 搜索了一下也没相关的类似问题
a.svg

Yichun Zhang (agentzh)

unread,
Oct 16, 2017, 3:36:05 PM10/16/17
to openresty
Hello!

显然你的 Lua 代码或使用的 Lua 模块内部有低级错误呀。为啥要每请求频繁地加载 string 这个标准 Lua 模块呢?难道你用了
lua_code_cache off?

Regards,
Yichun
> --
> --
> 邮件来自列表“openresty”,专用于技术讨论!
> 订阅: 请发空白邮件到 openresty...@googlegroups.com
> 发言: 请发邮件到 open...@googlegroups.com
> 退订: 请发邮件至 openresty+...@googlegroups.com
> 归档: http://groups.google.com/group/openresty
> 官网: http://openresty.org/
> 仓库: https://github.com/agentzh/ngx_openresty
> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
Reply all
Reply to author
Forward
0 new messages