[root@02 ~]# pstack
Usage: pstack <process-id>
[root@sz_city02 ~]# pstack 22559
#1 0x000000000042fb3c in ngx_epoll_process_events ()
#2 0x0000000000428e58 in ngx_process_events_and_timers ()
#3 0x000000000042e970 in ngx_worker_process_cycle ()
#4 0x000000000042d2a7 in ngx_spawn_process ()
#5 0x000000000042e013 in ngx_start_worker_processes ()
#6 0x000000000042eed4 in ngx_master_process_cycle ()
#7 0x0000000000414d6a in main ()
[root@02 ~]# strace -c -p22558
Process 22558 attached - interrupt to quit
Process 22558 detached
[root@02 ~]# ps aux|grep nginx
root 19720 0.0 0.0 61124 680 pts/1 S+ 11:41 0:00 grep nginx
root 22558 0.0 0.0 56868 2396 ? Ss Mar19 0:00 nginx: master process /usr/local/openresty/nginx/sbin/nginx
www 22559 0.0 0.0 62388 6668 ? S Mar19 0:08 nginx: worker process
www 22560 0.0 0.0 60968 5600 ? S Mar19 0:10 nginx: worker process
www 22561 0.0 0.0 61328 5844 ? S Mar19 0:10 nginx: worker process
www 22562 0.0 0.0 61624 6184 ? S Mar19 0:10 nginx: worker process
www 22563 0.0 0.0 60968 5608 ? S Mar19 0:09 nginx: worker process
www 22564 0.0 0.1 63976 8388 ? S Mar19 0:13 nginx: worker process
www 22565 0.0 0.0 61860 6380 ? S Mar19 0:09 nginx: worker process
www 22566 0.0 0.0 61584 6064 ? S Mar19 0:10 nginx: worker process
[root@02 ~]# /usr/local/openresty/nginx/sbin/nginx -V
nginx: nginx version: ngx_openresty/
1.0.10.24
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
nginx: TLS SNI support disabled
nginx: configure arguments: --prefix=/usr/local/openresty/nginx --add-module=../ngx_devel_kit-0.2.17 --add-module=../iconv-nginx-module-0.10rc5 --add-module=../echo-nginx-module-0.37rc7 --add-module=../xss-nginx-module-0.03rc7 --add-module=../set-misc-nginx-module-0.22rc3 --add-module=../form-input-nginx-module-0.07rc5 --add-module=../encrypted-session-nginx-module-0.01 --add-module=../ngx_lua-0.3.1rc38 --add-module=../headers-more-nginx-module-0.16rc4 --add-module=../srcache-nginx-module-0.13rc2 --add-module=../array-var-nginx-module-0.03rc1 --add-module=../memc-nginx-module-0.13rc2 --add-module=../redis2-nginx-module-0.08rc2 --add-module=../upstream-keepalive-nginx-module-0.3 --add-module=../auth-request-nginx-module-0.2 --add-module=../rds-json-nginx-module-0.12rc7 --add-module=../rds-csv-nginx-module-0.04 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module