------------------ 原始邮件 ------------------
发件人: "agentzh"<age...@gmail.com>;
发送时间: 2013年4月28日(星期天) 凌晨0:55
收件人: "openresty"<openresty@googlegroups.com>;
主题: Re: [openresty] sregex 库的优化。 现在优化好了么?
Hello!
2013/4/27 red-hat <w79...@gmail.com>:
> @agentzh 春哥 。我用 openresty 全功能版
>> 然后 ./configure --add-module=/root/replace-filter-nginx-module-master
>> 编译添加
>> replace-filter-nginx-module 模块
>> 发现服务器非常卡。 用这个模块导致服务器巨卡。
>
再重复一遍上一封邮件里我的建议:
“你能使用 ngx-sample-bt 工具绘制出你的 nginx 服务器在 CPU 使用率较高时的“火焰图”吗?见这里的用法细节:
https://github.com/agentzh/nginx-systemtap-toolkit/#ngx-sample-bt
”
火焰图(flamegraph)可以很好地指导优化工作。
> sregex 库的优化。 现在优化好了么?
>
> replace_filter "121.11.111.11" "9.9.9.9" g;
> 替换ip。这都导致 服务器异常卡。
>
我最近太忙,还没得空来做。对于你这里的模式,有非常简单的优化方法可以有极大的性能提升,即在一开始直接搜索以 1 和 9 开头的字节。我下面抽时间搞一下。。。
Best regards,
-agentzh
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 openresty@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@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