7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【php-fpm】サーバーチューニング パラメーター備忘録

Last updated at Posted at 2017-05-16
/etc/php-fpm.d/www.conf
#動的
pm = dynamic

#dynamicの場合必須、作成される子プロセスの最大数
#同時に処理できるリクエストの最大数
pm.max_children = 300

#起動時に作成される子プロセスの数
pm.start_servers = 75

#アイドル状態のサーバープロセス数の最小値
pm.min_spare_servers = 20

#アイドル状態のサーバープロセス数の最大値
pm.max_spare_servers = 150

#各子プロセスが、再起動するまでに実行するリクエスト数
#メモリリークの回避策に、再起動させない場合は0
pm.max_requests = 500
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?