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!
 
There are no general suggestions about this settings. That's why you don't find any plug and play solution on the web.
Too many different and individually things affect this settings.

Here is a start point to read about this.
 
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
 
Back
Top Bottom