瀏覽代碼

Use ondemand instead of dynamic

I believe ondemand is much more efficient on resource usage.
Alexandros Ioannides 8 年之前
父節點
當前提交
f75c413179
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      install/ubuntu/16.04/php-fpm/www.conf

+ 6 - 5
install/ubuntu/16.04/php-fpm/www.conf

@@ -1,10 +1,11 @@
 [www]
 listen = 127.0.0.1:9000
 listen.allowed_clients = 127.0.0.1
+
 user = www-data
 group = www-data
-pm = dynamic
-pm.max_children = 50
-pm.start_servers = 5
-pm.min_spare_servers = 3
-pm.max_spare_servers = 35
+
+pm = ondemand
+pm.max_children = 2
+pm.max_requests = 4000
+pm.process_idle_timeout = 10s