PHP-FPM Process Calculator
Total Ram (GB)
Reserved Ram (GB)
RAM Buffer (%)
Process size (MB)
View the current process size with the following command:
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep php-fpm
Available RAM (GB)
Available RAM (MB)
pm.max_children
The number of child processes to be created when pm is set to static and the maximum number of child processes to be created when pm is set to dynamic. This option is mandatory. This option sets the limit on the number of simultaneous requests that will be served. Equivalent to the ApacheMaxClients directive with mpm_prefork and to the PHP_FCGI_CHILDREN environment variable in the original PHP FastCGI.
pm.start_servers
The number of child processes created on startup. Used only when pm is set to dynamic. Default Value:
min_spare_servers + (max_spare_servers - min_spare_servers) / 2.
pm.min_spare_servers
The desired minimum number of idle server processes. Used only when pm is set to dynamic. Also mandatory in this case.
pm.max_spare_servers
The desired maximum number of idle server processes. Used only when pm is set to dynamic. Also mandatory in this case.