Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active October 17, 2018 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandanote-info/6c2eeeee654e16504099a9138358fa55 to your computer and use it in GitHub Desktop.
Save pandanote-info/6c2eeeee654e16504099a9138358fa55 to your computer and use it in GitHub Desktop.
メモリリソースが少ないサーバでphp-fpmを稼働させるためのwww.confの設定。
--- www.conf.org 2018-10-16 08:29:28.381346560 +0900
+++ www.conf 2018-10-16 09:41:21.542442575 +0900
@@ -127,7 +127,7 @@
; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
-pm.max_spare_servers = 35
+pm.max_spare_servers = 10
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment