openresty-systemtap-toolkit icon indicating copy to clipboard operation
openresty-systemtap-toolkit copied to clipboard

Issue running ngx-leaked-pools

Open ghost opened this issue 11 years ago • 2 comments

Hi, I have been getting issues with running leaked pools:

sudo ./ngx-leaked-pools -p 7390 semantic error: while resolving probe point: identifier 'process' at :9:7 source: probe process("/usr/local/nginx/sbin/nginx").provider("nginx").mark("create-pool-done")

This has something to do with not able to find the marker in the symbols. Is this a known issue ? is there any pre-requisite ?

ghost avatar Feb 14 '14 10:02 ghost

@avninagraj To quote the documentation for this tool:

This script requires Nginx instances that have applied the latest dtrace patch. See the dtrace-nginx project for more details.

The bundle ngx_openresty 1.2.3.3+ includes the right dtrace patch by default. And you just need to build it with the --with-dtrace-probes configure option.

See https://github.com/agentzh/nginx-systemtap-toolkit#ngx-leaked-pools for more details.

agentzh avatar Feb 16 '14 19:02 agentzh

Systemtap not installed or its "stap" utility is not visible to the PATH environment:

cjhust avatar May 13 '16 07:05 cjhust