php-fpm max_children optimizing

8 CPU

32G RAM

wget http://git.io/joLG

[[email protected]]# ./ps_mem.py |grep php-fpm
9.5 GiB + 212.1 MiB = 9.7 GiB php-fpm (401)

9700MB /401 processes = 24MB

24.19Mb per process

max_children = (Total Number of Mem – 1000MB) / php-fpm memory per process 공식 대입

Max_children = (32000Mb – 1000Mb)/24.19Mb

-> max_children = 31958

 

답글 남기기