# PHp fpm 100%

**URL:** <https://www.debian-fr.org/t/php-fpm-100/84423>\
**Category:** Support Debian\
**Created:** [Avril 19, 2021, 8:20 UTC](https://www.debian-fr.org/t/php-fpm-100/84423 "2021-04-19T20:20:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bagou450](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@bagou450](https://www.debian-fr.org/u/bagou450)\
**Post date:** [Avril 19, 2021, 8:20 UTC](https://www.debian-fr.org/t/php-fpm-100/84423/1 "2021-04-19T20:20:48Z")

</div>

Hello i have a server on debian 9 with nginx and php 8.0 fpm  
The specs of the server :  
64 go of ram  
i7 6700k

But when i start nginx my cpu reach 100%  
In my php config file :

pm = ondemand

; The number of child processes to be created when pm is set to ‹&nbsp;static&nbsp;› and the  
; maximum number of child processes when pm is set to ‹&nbsp;dynamic&nbsp;› or ‹&nbsp;ondemand&nbsp;›.  
; This value sets the limit on the number of simultaneous requests that will be  
; served. Equivalent to the ApacheMaxClients directive with mpm\_prefork.  
; Equivalent to the PHP\_FCGI\_CHILDREN environment variable in the original PHP  
; CGI. The below defaults are based on a server without much resources. Don’t  
; forget to tweak pm.\* to fit your needs.  
; Note: Used when pm is set to ‹&nbsp;static&nbsp;›, ‹&nbsp;dynamic&nbsp;› or ‹&nbsp;ondemand&nbsp;›  
; Note: This value is mandatory.  
pm.max\_children = 400000

---

<div class="post-metadata">

**Author:** ![anon96191775](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@anon96191775](https://www.debian-fr.org/u/anon96191775)\
**Post date:** [Avril 19, 2021, 9:01 UTC](https://www.debian-fr.org/t/php-fpm-100/84423/2 "2021-04-19T21:01:26Z")

</div>

Sur ce forum, il vaut mieux écrire en français si tu veux avoir des réponses 😉

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Avril 20, 2021, 8:25 UTC](https://www.debian-fr.org/t/php-fpm-100/84423/3 "2021-04-20T08:25:20Z")

</div>

> [@bagou450](#):
>
> pm.max\_children = 400000

Ouch ! 🤯  
Pas étonnant que le CPU soit à 100%.  
C’est quoi cette valeur délirante ? Où sont les autres directives obligatoires avec les processus à la demande ?

---

<div class="post-metadata">

**Author:** ![josephtux](https://www.debian-fr.org/user_avatar/www.debian-fr.org/josephtux/32/3985_2.png) [@josephtux](https://www.debian-fr.org/u/josephtux)\
**Post date:** [Avril 20, 2021, 9:55 UTC](https://www.debian-fr.org/t/php-fpm-100/84423/4 "2021-04-20T09:55:54Z")

</div>

> **[PHP pour Apache2 configuration et optimisation des performances – Buzut](https://buzut.net/configuration-dun-serveur-linux-php/)**
>
> Installons et paramétrons PHP. On passera en revue les options les plus importantes et les différentes configurations possibles.

«10 ou9 pour être prudent»
