question about nginx start & stop
zhangfei.gao at gmail.com
Fri Apr 15 07:58:52 UTC 2022
I have questions about nginx start and stop
I am using
sudo sbin/nginx -s quit
1. openssl engine is init (ngx_ssl_init) twice, but openssl engine
destroy function is not called.
So start nginx and nginx -s quit, engine init twice but not called
If we start and stop nginx many times, resource leakage will happen.
2. Currently the nginx master process do ngx_ssl_init then ngx_daemon
start daemon and master process exit.
Now linux kernel has a patch to release resources in mm_put at process exit.
As a result ngx_ssl_init in the master process can not be used in daemon.
So is this behavior (release resources in mm_put) not expected?
init openssl_engine: bind_fn
start daemon and main process exit
More information about the nginx-devel