瀏覽代碼

Merge pull request #1398 from ioannidesalex/patch-16

Ondemand instead of Dynamic & Add Status Page
Serghey Rodin 8 年之前
父節點
當前提交
941085608e
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      install/ubuntu/16.04/templates/web/php-fpm/default.tpl

+ 5 - 5
install/ubuntu/16.04/templates/web/php-fpm/default.tpl

@@ -5,11 +5,11 @@ listen.allowed_clients = 127.0.0.1
 user = %user%
 group = %user%
 
-pm = dynamic
-pm.max_children = 50
-pm.start_servers = 3
-pm.min_spare_servers = 2
-pm.max_spare_servers = 10
+pm = ondemand
+pm.max_children = 4
+pm.max_requests = 4000
+pm.process_idle_timeout = 10s
+pm.status_path = /status
 
 php_admin_value[upload_tmp_dir] = /home/%user%/tmp
 php_admin_value[session.save_path] = /home/%user%/tmp