master process

2023-08-04 Thread Yuval Abadi via nginx
Hi I am writing plugin code that read the configuration, nginx.conf, and do some periodic continues processing. In the configuration CBs, the process PID is not the MASTER, after NGINX start run he MASTER pid is other process. It seems that temporary process read the nginx.conf. and then sp

Re: Q: Is "master process" could be overloaded by traffic

2022-11-14 Thread ymarkman
THANKS Sergey!!! Clear. Best regards. Yan Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295739,295742#msg-295742 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Re: Q: Is "master process" could be overloaded by traffic

2022-11-14 Thread Sergey A. Osokin
Hi, hope you're doing well. On Mon, Nov 14, 2022 at 07:43:28AM -0500, ymarkman wrote: > When/WhatFor "master process" is acting (vs worker)? Here's the quote from [1]: The master process is responsible for the following tasks: - reading and validating configuration

Q: Is "master process" could be overloaded by traffic

2022-11-14 Thread ymarkman
When/WhatFor "master process" is acting (vs worker)? Is it involved in data-traffic performance? Could it be overloaded by agressive traffic or "stays in ~idle"? Thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,2957

Re: why nginx worker process listen in port 80, not master process?

2020-11-20 Thread duckyrain
It's not nginx's problem。`netstat` only displayed the first filtered pid,change `ss -ltp | grep nginx` to display listen process. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288851,290022#msg-290022 ___ nginx mailing list nginx@nginx.org

NGINX Forked Operations do not get handled in the Same Session as the Master Process?

2020-09-28 Thread Ege Görgün
ver's log file: master_process off; daemon off; 1. When I remove the above mentioned parameters and run NGINX as a background process, however, I believe forked operations do not get handled in the same session as the master process of NGINX and therefore they don't see our preloaded so

why nginx worker process listen in port 80, not master process?

2020-07-24 Thread Zhengyu Pan
In my node, Every network namespace has own nginx process. when i use netstat command to get which nginx process are listening in port 80? I found that some nginx worker process are listening 80 port. Some nginx master process are listening port 80. In my understanding ,it should be that nginx

Re: Start nginx worker process with same user as master process

2016-09-22 Thread Sushma
Thanks a lot Francis. Apparently nginx was once started as root. So automatically the ownership of the temp folders got changed to nginx user. This explains the sudden permission change even though I had set it explictly. Thanks for your help. Cheers, Sushma Posted at Nginx Forum: https://forum

Re: Start nginx worker process with same user as master process

2016-09-21 Thread steve
Hi, On 09/21/2016 05:51 PM, Sushma wrote: Thanks for the details. I have explicitly changed permissions for directories as required. But the problem I am facing here is nginx reload fails due to permission denied for proxy_temp folder. I had explicitly changed permissions for this folder so that

Re: Start nginx worker process with same user as master process

2016-09-21 Thread Francis Daly
On Wed, Sep 21, 2016 at 01:51:18AM -0400, Sushma wrote: Hi there, > I have explicitly changed permissions for directories as required. > But the problem I am facing here is nginx reload fails due to permission > denied for proxy_temp folder. > I had explicitly changed permissions for this folder

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
Thanks for the details. I have explicitly changed permissions for directories as required. But the problem I am facing here is nginx reload fails due to permission denied for proxy_temp folder. I had explicitly changed permissions for this folder so that it could be accesssed by user abc (user wit

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Francis Daly
I need this new user. How do you start the nginx process? Whatever that method is, do it as the user that you want to run everything as. > nginx: [warn] the "user" directive makes sense only if the > master process runs with super-user privileges, ignored in > /usr/lo

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
d by nginx user. (probably bcos it was installed as nginx?). Is there a way to mention that I need this new user. nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/nginx/conf/nginx.conf:6 Wth this , it looks li

Re: Start nginx worker process with same user as master process

2016-08-17 Thread Francis Daly
On Wed, Aug 17, 2016 at 12:03:48PM -0400, Sushma wrote: Hi there, > I have setup nginx master process with a user , lets say user1. By that, do you mean "you run nginx as user1", or something else? > In the nginx.conf, user directive is mentioned with nginx. (user nginx;) >

Start nginx worker process with same user as master process

2016-08-17 Thread Sushma
I have setup nginx master process with a user , lets say user1. In the nginx.conf, user directive is mentioned with nginx. (user nginx;) I understand that worker processes will be spawned by user nginx when I start nginx. Is there a way to start worker processes also as user1 without changing

Re: Master process on reload

2016-06-29 Thread B.R.
rocesses > > > > This is exact since the HUP signal is used to reload configuration and > > spawn new workers with it. > > > > However, a little bit further on the same page, in the on-the-fly upgrade > > section, you got: > > > > > Send the HUP

Re: Master process on reload

2016-06-29 Thread Maxim Dounin
e page, in the on-the-fly upgrade > section, you got: > > > Send the HUP signal to the old master process. The old master process will > > start new worker processes without re-reading the configuration. After > > that, all new processes can be shut down gracefully, by send

Master process on reload

2016-06-29 Thread B.R.
on, graceful shutdown of old worker processes This is exact since the HUP signal is used to reload configuration and spawn new workers with it. However, a little bit further on the same page, in the on-the-fly upgrade section, you got: > Send the HUP signal to the old master process. The old

Re: How do i free memory when my master process ends?

2014-06-02 Thread Maxim Dounin
Hello! On Mon, Jun 02, 2014 at 04:15:09PM +0530, Adarsh Pugalia wrote: > I am allocating memory using malloc for some of my variables in my module. > I know i can call an exit master process, but how do i access my variables > in that function. I tried finding some examples, but didnt

How do i free memory when my master process ends?

2014-06-02 Thread Adarsh Pugalia
I am allocating memory using malloc for some of my variables in my module. I know i can call an exit master process, but how do i access my variables in that function. I tried finding some examples, but didnt find any. Can anyone guide me through this

Re: 100% CPU nginx master process

2014-03-03 Thread Maxim Dounin
Hello! On Sun, Mar 02, 2014 at 05:40:09PM -0500, badtzhou wrote: > We are have issue that nginx master process is at 100% CPU and it stop > responding to any request. The CPU utilization for all the workers are low. > > I am also seeing multiple nginx master process running at t

Re: 100% CPU nginx master process

2014-03-02 Thread badtzhou
We seeing lot of empty requests from nginx process trace. Is this normal or some kind of Dos attack? 0.48 recvfrom(254, "", 1024, 0, NULL, NULL) = 0 0.33 close(254)= 0 0.54 recvfrom(600, "", 1024, 0, NULL, NULL) = 0 0.29 close(600)= 0

Re: 100% CPU nginx master process

2014-03-02 Thread Yichun Zhang (agentzh)
Hello! On Sun, Mar 2, 2014 at 2:40 PM, badtzhou wrote: > We are have issue that nginx master process is at 100% CPU and it stop > responding to any request. The CPU utilization for all the workers are low. > If I were you, I would just take a C-land on-CPU flame graph for the process

100% CPU nginx master process

2014-03-02 Thread badtzhou
We are have issue that nginx master process is at 100% CPU and it stop responding to any request. The CPU utilization for all the workers are low. I am also seeing multiple nginx master process running at the same time when server stop responding, all of them are at 100% CPU. For my understand

Re: Running code in nginx's master process

2013-10-24 Thread Maxim Dounin
Hello! On Thu, Oct 24, 2013 at 08:37:03AM -0400, mzabani wrote: > It seems like the init_module callback is not executed in nginx's master > process. At least, I've printed a call to getpid() and the pid returned was > that of a process that wasn't running, which makes

Re: Running code in nginx's master process

2013-10-24 Thread mzabani
It seems like the init_module callback is not executed in nginx's master process. At least, I've printed a call to getpid() and the pid returned was that of a process that wasn't running, which makes me think it is executed in a process that forks the master process itself. Posted

Re: Running code in nginx's master process

2013-10-22 Thread Maxim Dounin
Hello! On Mon, Oct 21, 2013 at 08:27:01PM -0400, mzabani wrote: > Is it possible to have a module run code in nginx's master process, i.e. not > in a worker process? > I know init_master is just a stub for now. Are there any chances this gets > implemented in the near fu

Running code in nginx's master process

2013-10-21 Thread mzabani
Is it possible to have a module run code in nginx's master process, i.e. not in a worker process? I know init_master is just a stub for now. Are there any chances this gets implemented in the near future? Thanks in advance, Marcelo. Posted at Nginx Forum: http://forum.nginx.org/rea

Re: *** glibc detected *** nginx: master process /data/nginx/sbin/nginx -c /data/nginx/conf/nginx.conf: free(): invalid pointer: 0x00000000005b9980 ***

2013-02-19 Thread Anton Yuzhaninov
On 02/19/13 16:26, disney2002 wrote: I got a Serious problem,here is the nginx config: nginx version: nginx/0.8.55 0.8.55 is very old, try to upgrade to latest stable - 1.2.7 -- Anton Yuzhaninov ___ nginx mailing list nginx@nginx.org http://mailma

*** glibc detected *** nginx: master process /data/nginx/sbin/nginx -c /data/nginx/conf/nginx.conf: free(): invalid pointer: 0x00000000005b9980 ***

2013-02-19 Thread disney2002
/local/openssl-1.0.1c --with-http_gzip_static_module --with-http_ssl_module and here is the error message: *** glibc detected *** nginx: master process /data/nginx/sbin/nginx -c /data/nginx/conf/nginx.conf: free(): invalid pointer: 0x005b9980 *** === Backtrace: = /lib64/libc.so