agentzh 你好,
附件中是我们最近优化应用后生成的一个 nginx 进程火焰图,使用 sample-bt
图中右半部看起来似乎比较正常了,左边几个地址比较奇怪
我用 ngx-backtrace 查看这几个地址(应该是这么用吧?)
[root@xxx nginx-systemtap-toolkit]# ./ngx-backtrace -p 17050 0x44c9d0 0x44c9dc 0x44c9ea 0x44c9f5
ngx_http_regex_compile
/root/software/ngx_openresty-1.4.3.3/build/nginx-1.4.3/src/http/ngx_http_variables.c:2236
ngx_http_regex_compile
/root/software/ngx_openresty-1.4.3.3/build/nginx-1.4.3/src/http/ngx_http_variables.c:2236
ngx_http_regex_compile
/root/software/ngx_openresty-1.4.3.3/build/nginx-1.4.3/src/http/ngx_http_variables.c:2248
ngx_http_regex_compile
/root/software/ngx_openresty-1.4.3.3/build/nginx-1.4.3/src/http/ngx_http_variables.c:2249
看起来好象花了不少时间在编译正则表达式上,但我应该已经全部用 jo 了,难道是哪里落下了?
另外 ngx-backtrace 的时候一定要手工去掉地址前面几个字节只保留后面的偏移吗?
谢谢
Lance
Attachment:
17050.svg
Description: image/svg