# FR #54098 -> default FPM values for processes

- Thread: https://externals.io/message/53723
- Original archive: https://news-web.php.net/php.internals/53723
- Started by jerome@loyet.net on 2011-07-02T17:53:39+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #53723 — jerome@loyet.net — 2011-07-02T17:53:39+00:00

URL: https://externals.io/message/53723#53723

Hi there,

in the following request https://bugs.php.net/bug.php?id=54098, the
user ask to lower the FPM pm.max_children configuration item. As pm.*
configuration items are very specific to every situation (hardware,
code, # parallal requests, ...) there is no default value which suites
everyone.

I'd like to remove the default value from the php-fpm.conf file. After
that, with the default php-fpm.conf, php-fpm won't start until the
sysadmin specify what he wants. If package mainteners want the default
conf file to work, they can change it as they like.

What do you think ?

++ jerome

PS: the very simple patch:


Index: sapi/fpm/php-fpm.conf.in
===================================================================
--- sapi/fpm/php-fpm.conf.in    (revision 312812)
+++ sapi/fpm/php-fpm.conf.in    (working copy)
@@ -148,7 +148,7 @@
 ;                                    of 'idle' processes is greater than this
 ;                                    number then some children will be killed.
 ; Note: This value is mandatory.
-pm = dynamic
+;pm = dynamic

 ; The number of child processes to be created when pm is set to
'static' and the
 ; maximum number of child processes to be created when pm is set to 'dynamic'.
@@ -158,7 +158,7 @@
 ; CGI.
 ; Note: Used when pm is set to either 'static' or 'dynamic'
 ; Note: This value is mandatory.
-pm.max_children = 50
+;pm.max_children = 50

 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'

---

## #53725 — Kiall Mac Innes — 2011-07-02T18:18:21+00:00

URL: https://externals.io/message/53723#53725

I tend to agree. A working out of the box configuration is no harder for
sysadmins needing to change it, and easier for developers to just install
and run..

Kiall


>
> Why not just set it low as he suggested? That's what Apache and most web
> servers I know of does. Low is always safe and it means it works out of
> the box.
>
> -Rasmus

---

## #53750 — jerome@loyet.net — 2011-07-05T20:53:06+00:00

URL: https://externals.io/message/53723#53750

Le 2 juillet 2011 19:58, Rasmus Lerdorf <rasmus@lerdorf.com> a écrit :
> 
> > […]
>
> Why not just set it low as he suggested? That's what Apache and most web
> servers I know of does. Low is always safe and it means it works out of
> the box.
>

ok then. it makes also sense.

++ Jerome

> -Rasmus
