oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
800 stars 26 forks source link

ERROR: failed to reload: execvp() failed: Argument list too long (7) #2113

Open JuanLFS opened 2 months ago

JuanLFS commented 2 months ago

Frequently asked questions

Is your feature request related to a problem? Please describe. When PHP-FPM is reloaded via a command like "service php-fpm reload", PHP-FPM is shut down and does not restart. The following error is displayed in the log:

ERROR: failed to reload: execvp() failed: Argument list too long (7)

When debug logging is enabled, the following error is displayed:

ERROR: pid 9550, fpm_pctl_exec(), line 102: failed to reload: execvp() failed: Argument list too long (7)

The issue occurs when there are many pools (in my case, more than 4000). We are experiencing this problem in version 7.0 of PHP, but there are reports of this bug in other versions as well.

The bug is also reported at: https://bugs.php.net/bug.php?id=68440

Describe the solution you'd like

I'd like the bug solution to be backported to the other php versions aswell: https://github.com/php/php-src/commit/77bf9245d22a2a15f0e1654e69c8885ac723dc74