Welcome! Log In Create A New Profile

Advanced

question about nginx start & stop

Zhangfei Gao
April 15, 2022 04:02AM
Hi,

I have questions about nginx start and stop
I am using
// start
sudo sbin/nginx
//stop
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
engine destroy.
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?

src/core/nginx.c
main:
ngx_ssl_init
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL)
init openssl_engine: bind_fn
ngx_daemon
start daemon and main process exit

Thanks
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

question about nginx start & stop

Zhangfei Gao 518 April 15, 2022 04:02AM

Re: question about nginx start & stop

Maxim Dounin 94 April 16, 2022 10:16PM

Re: question about nginx start & stop

Zhangfei Gao 84 April 19, 2022 12:16AM

Re: question about nginx start & stop

Maxim Dounin 85 April 19, 2022 10:04AM

Re: question about nginx start & stop

Zhangfei Gao 133 April 20, 2022 11:58PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready