Skip to content
Advertisement

PHP 7.2 fails to start when pm.max_children > 506

on Debian 10 when I set pm.max_children = 507 or more and try to start php7.2-fpm I get following error:

JavaScript

When I set pm.max_children = 506 or less all is working fine.

My www.pool config:

JavaScript

My server config:

  • 10-core CPU
  • 256 GB RAM

What can cause that? Is there some hard limit on how much php-fpm children can be started? Or is this some system limit? Can it be increased somehow (I have lot of free memory)?

Advertisement

Answer

Chances are that most of those 500+ php-fpm children will be going unused in the long term, but if you did want to increase the quantity, there are other limits being set by the master-FPM process and the operating system.

Open File Descriptor Limit Set open file descriptor rlimit for the master process. Default value: the rlimit for the master process (from php-fpm.conf).

JavaScript

You may need to also enable php-fpm (or its user) to be able to use more file handles by editing the /etc/security/limits.conf file, with the hard & soft limits for the user (www-data).

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement