FPM: many pools = extremely slow startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I'm running PHP FPM 7.3 on linux. I have 35000 pools and it takes
several minutes for an FPM to
start/reload. I strace'd the master process and found that most of the
time is spent reading the
pools config one byte at a time (strace below).
Is this a normal behavior?

...
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "l", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "i", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "s", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "t", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "e", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "n", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, ".", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "m", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "o", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "d", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "e", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "=", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "0", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "6", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "6", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "0", 1) = 1
read(4</etc/php/7.3/fpm/pool.d/pools.conf>, "\n", 1) = 1
...



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux