Welcome! Log In Create A New Profile

Advanced

Re: upgrading binary failed - execve - too long argument list

Mathew Heard
April 28, 2021 06:58PM
At-least on my system ARG_MAX depends on the size of ulimit.

# getconf ARG_MAX
2097152
# ulimit -s unlimited
# getconf ARG_MAX
4611686018427387903

Meaning no kernel recompilation should be necessary to adjust the maximum
argument space.

On Thu, 29 Apr 2021 at 07:13, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Tue, Apr 27, 2021 at 12:35:58PM +0200, Charlie Kilo wrote:
>
> > Hi everyone,
> > i'm trying to upgrade an nginx-binary while running.
> > When i do kill -s USR2 <pid>, i get the following error in the logs..
> >
> > 11:40:38 [alert] 52701#0: execve() failed while executing new binary
> > process "/opt/sbin/nginx" (7: Argument list too long)
> >
> > Anybody knows what exactly is in those arguments ? We have ~ 20-55 worker
> > processes if that might be related..
> > nginx-version is 1.18.0, os: debian buster
>
> The only notable thing I can think of is the list of open
> listening sockets, which is passed in the NGINX environment
> variable to the new process.
>
> There should be plenty of space even with a lot of listening
> sockets though, given the default limit of 2M on Linux. Even with
> "listen ... reuseport", when a separate listening socket
> is created for each worker process, it does not look like the
> limit can be easily reached: 2M should be enough for about 300k
> listening sockets, so with 55 worker processes it is about 5k
> listening sockets with reuseport.
>
> How many listening sockets do you have? Do they use "listen ...
> reuseport" option? What "getconf ARG_MAX" and "ulimit -s" show on
> your system? Any 3rd party modules (and what "nginx -V" shows)?
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upgrading binary failed - execve - too long argument list

Charlie Kilo April 27, 2021 06:38AM

Re: upgrading binary failed - execve - too long argument list

Francis Daly April 28, 2021 08:18AM

Re: upgrading binary failed - execve - too long argument list

Maxim Dounin April 28, 2021 05:14PM

Re: upgrading binary failed - execve - too long argument list

Mathew Heard April 28, 2021 06:58PM

Re: upgrading binary failed - execve - too long argument list

Charlie Kilo April 30, 2021 02:30AM

Re: upgrading binary failed - execve - too long argument list

Charlie Kilo April 30, 2021 05:16AM

Re: upgrading binary failed - execve - too long argument list

Maxim Dounin May 04, 2021 11:54AM

Re: upgrading binary failed - execve - too long argument list

Mathew Heard May 04, 2021 08:44PM

Re: upgrading binary failed - execve - too long argument list

Charlie Kilo May 08, 2021 04:02AM

Re: upgrading binary failed - execve - too long argument list

Maxim Dounin May 09, 2021 11:28AM

Re: upgrading binary failed - execve - too long argument list

Charlie Kilo May 10, 2021 06:04AM

Re: upgrading binary failed - execve - too long argument list

itpp2012 May 10, 2021 06:53AM

Re: upgrading binary failed - execve - too long argument list

Charlie Kilo May 10, 2021 02:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready