Welcome! Log In Create A New Profile

Advanced

PHP-FPM errors to increase start server.

Posted by agriz 
PHP-FPM errors to increase start server.
October 23, 2017 10:09AM
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 52 total children

I am getting this error.

top -c
%Cpu(s): 70.6 us,  8.2 sy,  0.0 ni, 20.8 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st

php-fpm
max_children = 700
pm.start_servers = 30
pm.min_spare_servers = 20
pm.max_spare_servers = 40
pm.max_requests = 2000

nginx
worker_processes auto
worker_connections 15000;
worker_rlimit_nofile 70000;


There is free ram

KiB Mem : 32740464 total, 15831456 free, 1106152 used, 15802856 buff/cache


But i am still hitting the cpu and getting those error messages in error log
Top

WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 52 total children


But it is no use in increasing the pm.start_servers and pm.min/max_spare_servers.
I am getting the problem immediately

If i have 20 start_servers, and max_connection is 2000 can it handle 40,000 connections?
What is max_children?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready