xianshun163 commented on issue #5966: URL: https://github.com/apache/apisix/issues/5966#issuecomment-1015394525
> @xianshun163 `./wrk -t200 -c5000 -d30s http://172.16.11.13:9080/hello` > > if you want to run the benchmark with 5000 connections, you need to update the https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L238 . > > Connections exceeding this number will become short connections. > > more doc: http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive @membphis , do you know how to get the "Flame diagram",? I use openresty-systemtap-toolkit to do it , but I can not get the right lua parameter, the err like this: [root@k8s_test1 xs]# ./openresty-systemtap-toolkit/ngx-sample-lua-bt -p 44121 --luajit51 -t 20 > tmp.bt Unknown option: luajit51 Usage: ngx-sample-lua-bt [optoins] Options: -a <args> Pass extra arguments to the stap utility. -d Dump out the systemtap script source. -h Print this usage. -l <count> Only output <count> most frenquent backtrace samples. (Default to 1024) --lua51 Specify that the Nginx is using the standard Lua 5.1. interpreter. --luajit20 Specify that the Nginx is using LuaJIT 2.0. -p <pid> Specify the nginx process pid. -t <seconds> Specify the number of seconds for sampling. Examples: ngx-sample-lua-bt --lua51 -p 12345 -t 10 ngx-sample-lua-bt --luajit20 -p 12345 -t 5 -a '-DMAXACTION=100000' [root@k8s_test1 xs]# ./openresty-systemtap-toolkit/ngx-sample-lua-bt -p 44121 --lua51 -t 20 > tmp.bt The --lua51 option is specified but seen the LuaJIT library: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
