Tham khao: https:// _tideways.com/profiler/blog/an-introduction-to-php-fpm-tuning , vi du cho em dedicated 6 cores, 12 threads: # For 32G RAM, 12 cores pm.max_children = 130 ; (Total RAM – Memory used for Linux, DB, etc.) / process size (~50M) pm.start_servers = 36 ; Same as max_spare_servers, or sum 2 below/2 pm.min_spare_servers = 18 ; Number of CPU cores x 2 pm.max_spare_servers = 36 ; Number of CPU cores x 4