Php-fpm config tips

From vpsget wiki
Jump to: navigation, search

hp-fpm config tips DRAFT

Sometimes increasing limits could result in less memory and cpu usage. For example you have near 170-200 real simulateous connections and you see near 670 connections in netstat and may of them are timedout or sync-req. also you may note that nginx error log is growing fast with new records. SO try to increase some php-fpm limits in config:


pm.max_children = 100
pm.start_servers = 40
pm.min_spare_servers = 5
pm.max_spare_servers = 80