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",

질문됨 한 달 전220회 조회
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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전
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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인