Nginx - php fpm max children error

0

How to fix error in nginx :

  • php fpm max children (server reached pm.max_children setting (5), consider raising it)

  • (111: Connection refused) while connecting to upstream, client: 172.31.16.34, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.17.0.4:8000",

質問済み 1ヶ月前223ビュー
2回答
2
承認された回答

There are some suggestions here https://community.webcore.cloud/tutorials/how_to_solve_php_fpm_server_reached_max_children/

Seems that you want to look in either /etc/php-fpm.conf or /etc/php-fpm.d/[domain.com].conf for the value assigned to pm.max_children and increase this.

profile picture
エキスパート
Steve_M
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
1

Hello.

php fpm max children (server reached pm.max_children setting (5), consider raising it)

The value of "pm.max_children" in php-fpm seems to be small, so please try increasing the value.
I think it's a good idea to calculate this value based on the instance's memory size and the average memory usage of php-fpm.
https://www.php.net/manual/en/install.fpm.configuration.php

I often use the calculation method below.

pm.max_children = available memory of instance / average memory usage of php-fpm process

(111: Connection refused) while connecting to upstream, client: 172.31.16.34, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.17.0.4:8000",

You are trying to connect to "fastcgi://172.17.0.4:8000", but please check if this IP address is correct and if this IP address is listening on port 8000.

profile picture
エキスパート
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ