Skip to main content
InterviewHubPRO
Section Overview
Q25

Question 25 of 50

Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

50%
PHP & Zend Engine (50 Qs)•Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

How do you correctly configure and tune PHP-FPM process managers (static vs dynamic)?

senior LevelCode ExampleAsync & Promises

In Simple Words: For high-traffic production environments with dedicated RAM, use pm = static to avoid the process spawning/destroying overhead of dynamic.

ini
pm = static
pm.max_children = 100 ; RAM_Available / Average_PHP_Process_Size (e.g. 8GB / 60MB = ~120)
pm.max_requests = 1000 ; Prevents long-term memory leaks by recycling workers