PHP overload when there are a lot of request

165 views Asked by At

I have a website that receives a lot of traffic load, and when php is not able to handle all requests the web starts to slow down, even at certain times causes an error 502 nginx, I have this setting in the php file, I have been modifying but I can not find the problem. the server has 30 gb of ram and 8 cpus, running the htop command I do not see that the server is saturated.

some one can help me to fixit.

Regards

logs

[02-Nov-2023 13:53:15] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 8 idle, and 94 total children
[02-Nov-2023 13:53:16] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 5 idle, and 96 total children
[02-Nov-2023 13:53:17] WARNING: [pool www] server reached pm.max_children setting (100), consider raising it
[02-Nov-2023 13:54:43] WARNING: [pool www] server reached pm.max_children setting (100), consider raising it
[02-Nov-2023 13:55:31] WARNING: [pool www] server reached pm.max_children setting (100), consider raising it
[02-Nov-2023 14:01:13] WARNING: [pool www] server reached pm.max_children setting (100), consider raising it
[02-Nov-2023 14:02:33] WARNING: [pool www] server reached pm.max_children setting (100), consider raising it
0

There are 0 answers