Skip to content

Commit f75c413

Browse files
Use ondemand instead of dynamic
I believe ondemand is much more efficient on resource usage.
1 parent 5556e03 commit f75c413

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[www]
22
listen = 127.0.0.1:9000
33
listen.allowed_clients = 127.0.0.1
4+
45
user = www-data
56
group = www-data
6-
pm = dynamic
7-
pm.max_children = 50
8-
pm.start_servers = 5
9-
pm.min_spare_servers = 3
10-
pm.max_spare_servers = 35
7+
8+
pm = ondemand
9+
pm.max_children = 2
10+
pm.max_requests = 4000
11+
pm.process_idle_timeout = 10s

0 commit comments

Comments
 (0)