Thank-you for the response agentzh. Apologies in advance if some of these questions seem silly, I'm still learning openresty. The reason i'm attempting to use your openresty systemtap tools is so I can do some memory profiling. We've noticed that the nginx worker processes slowly consume more and more memory and then eventually die one by one which releases the memory. During some performance testing it appears that the worker processes are dying off gracefully in that no http response errors were captured during the perf testing. However, I'm still interested in what is happening so we can catch any issues before becoming a real problem. I appreciate you guidance.
I've now removed the --with-debug parameter and added the --with-dtrace-probes parameter however I'm getting the following error when I compile and run gmake:
gmake[2]: Entering directory `/mint-proxy/build/nginx-1.5.12'
cat src/dtrace/nginx_provider.d \
../ngx_lua-0.9.7/dtrace/ngx_lua_provider.d > objs/dtrace_providers.d
dtrace -xnolibs -h -o objs/ngx_dtrace_provider.h -s objs/dtrace_providers.d
gmake[2]: dtrace: Command not found
gmake[2]: *** [objs/ngx_dtrace_provider.h] Error 127
gmake[2]: Leaving directory `/mint-proxy/build/nginx-1.5.12'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/mint-proxy/build/nginx-1.5.12'
gmake: *** [all] Error 2
I thought maybe I had to install dtrace separately but when I do an rpm search it appears to be part of systemtap package which is installed on my build machine.
Also, the reason I'm using the /usr/sbin/nginx path is because that is how the package has been compiled in the past. Hopefully that doesn't make a difference, nginx seems to startup fine when I start the service.
Thanks,
Brendan