ngx-sample-lua-bt -p 19075 --luajit20 -t 5 > temp.bt
结果更悲剧, stap 好像core掉了。 导致操作系统重启。
我现在的环境是 vmware + CENTOS 7. 是不是 centos 7 没有很好地支持 systemtrap 啊?
我的压测时间是远远大于采用的 5秒时长的。 还是一个问题: 我看见 https://github.com/openresty/openresty-systemtap-toolkit。请问 究竟是使用 stapxx 工具包 还是 /openresty-systemtap-toolkit 工具包啊?
在 2018年5月8日,下午2:32,samue...@gmail.com 写道:测试过程如下:我在其中一个终端压测[samuel@samhost src]$ ab -n100000 -c10 http://localhost:8080/api/get_valueThis is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking localhost (be patient)Completed 10000 requestsCompleted 20000 requestsCompleted 30000 requestsCompleted 40000 requestsCompleted 50000 requestsCompleted 60000 requestsCompleted 70000 requestsCompleted 80000 requests在压测还没有结束前,在另外一个终端,获取采样信息,但取不到[root@samhost stapxx]# ./samples/lj-lua-stacks.sxx -x 23135 --skip-badvars --arg time=5 --arg time=5 > /tmp/1.btFound exact match for libluajit: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0WARNING: Start tracing 23135 (/usr/local/openresty/nginx/sbin/nginx)WARNING: Please wait for 5 seconds...WARNING: Time's up. Quitting now...WARNING: Found 0 JITted samples.我是按照这篇文章进行安装的。 https://moonbingbing.gitbooks.io/openresty-best-practices/content/flame_graph/install.htmlopenresty 的版本 [root@samhost stapxx]# openresty -vnginx version: openresty/1.13.6.1 -- --
测试过程如下:我在其中一个终端压测[samuel@samhost src]$ ab -n100000 -c10 http://localhost:8080/api/get_valueThis is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking localhost (be patient)Completed 10000 requestsCompleted 20000 requestsCompleted 30000 requestsCompleted 40000 requestsCompleted 50000 requestsCompleted 60000 requestsCompleted 70000 requestsCompleted 80000 requests在压测还没有结束前,在另外一个终端,获取采样信息,但取不到[root@samhost stapxx]# ./samples/lj-lua-stacks.sxx -x 23135 --skip-badvars --arg time=5 --arg time=5 > /tmp/1.btFound exact match for libluajit: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0WARNING: Start tracing 23135 (/usr/local/openresty/nginx/sbin/nginx)WARNING: Please wait for 5 seconds...WARNING: Time's up. Quitting now...WARNING: Found 0 JITted samples.我是按照这篇文章进行安装的。 https://moonbingbing.gitbooks.io/openresty-best-practices/content/flame_graph/install.htmlopenresty 的版本 [root@samhost stapxx]# openresty -vnginx version: openresty/1.13.6.1