tune PHP and FPM for 1-core/3GB VPS performance
Reduce FPM workers from 12 to 5 max to stop memory thrashing on a single-core VPS with 3GB RAM. Add OPcache and APCu tuning to reduce filesystem stat calls and improve cache hit rates.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[www]
|
||||
pm = dynamic
|
||||
pm.max_children = 12
|
||||
pm.start_servers = 4
|
||||
pm.min_spare_servers = 2
|
||||
pm.max_spare_servers = 6
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
pm.max_requests = 500
|
||||
|
||||
Reference in New Issue
Block a user