PHP-FPM Optimization Request

Douglas Taylor

Active member
I have a 4-core( Intel Xeon 3.1 ghz) processer with 16 GB RAM, dedicated server, primarily one domain.

Anyone have any suggestions for optimizing php-fpm in terms of “Max Requests”, “Max-Children” and “Process Idle Timeout” and ”Max Servers”?

Thanks in advance!
 
My own config for every server
Code:
pm = dynamic
pm.max_children = cpu x 4
pm.start_servers = cpu x 2
pm.min_spare_servers = # of cpu
pm.max_spare_servers = cpu x 3
pm.max_requests = 5000
 
My own config for every server
Code:
pm = dynamic
pm.max_children = cpu x 4
pm.start_servers = cpu x 2
pm.min_spare_servers = # of cpu
pm.max_spare_servers = cpu x 3
pm.max_requests = 5000
hi
cpu means the number of cores or thread?
 
Code:
; set pool management to have a fixed number of php workers
pm = static
; number of php processes (6 processes per CPU core)
pm.max_children = 48
 
Top Bottom