Skip to content

Found 0 JITted samples issue #34

@yingshang

Description

@yingshang

i see the solve https://github.com/openresty/stapxx/issues/13,and i use the method to solve it.but i can't get the result.
my nginx.conf file

worker_processes  1;
events {
	worker_connections  1024;
}

http {
	include       mime.types;
	default_type  application/octet-stream;
	sendfile        on;
lua_code_cache off;
lua_package_path "/opt/waf/waf/?.lua;;"; 
lua_shared_dict rules_dict 20m;
lua_shared_dict white_dict 10m;
lua_shared_dict black_dict 10m;
lua_shared_dict config_dict 10m;
	init_by_lua_file  /opt/waf/waf/init.lua;
	server {
		listen       80;
		server_name  localhost;
#error_log /tmp/error.log debug;
access_by_lua_file /opt/waf/waf/waf.lua;
log_by_lua_file /opt/waf/waf/log.lua;
		location / {
			proxy_pass   http://192.168.8.89:8881/;
		}
	}
}

i use the command j-lua-stacks.sxx, ab command and ngx-rps.sxx

[root@localhost waf]# ab -c 200 -n 10000 http://192.168.50.91/

^C[root@localhost stapxx]# ./samples/ngx-rps.sxx -x 16798
WARNING: Tracing process 16798 (/usr/local/openresty/nginx/sbin/nginx).
Hit Ctrl-C to end.
[1511514988] 102 req/sec
[1511514989] 107 req/sec
[1511514990] 99 req/sec
[1511514991] 103 req/sec
[1511514992] 95 req/sec
[1511514993] 100 req/sec
[1511514994] 97 req/sec
[1511514995] 95 req/sec
[1511514996] 102 req/sec
[1511514997] 95 req/sec
[1511514998] 102 req/sec
[1511514999] 102 req/sec
[1511515000] 106 req/sec
[1511515001] 105 req/sec

[root@localhost stapxx]# ./samples/lj-lua-stacks.sxx  --skip-badvars -x 16798 > tmp.bt
Found exact match for libluajit: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0
WARNING: Start tracing 16798 (/usr/local/openresty/nginx/sbin/nginx)
WARNING: Hit Ctrl-C to end.
^CWARNING: Found 0 JITted samples.

this is my operation video:https://youtu.be/hCE-MESXk04
brother chun,I hope to get your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions