fix: reduce memory_limit to 256M and configure PHP-FPM process management settings

This commit is contained in:
hamed
2026-07-08 17:54:20 +03:30
parent c6fa92b9a4
commit a5460cbaa9
15 changed files with 563 additions and 458 deletions
+11
View File
@@ -5,3 +5,14 @@
; wrong environment. Keep the container env so compose-provided vars reach PHP.
[www]
clear_env = no
; Process manager: bounded pool + child recycling. Without pm.max_requests the
; default children live forever and slow PHP memory leaks accumulate for hours
; until the host OOMs (the messenger workers already recycle hourly; this gives
; FPM the same hygiene).
pm = dynamic
pm.max_children = 8
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 4
pm.max_requests = 500