提问人:CCG 提问时间:11/2/2023 最后编辑:ADysonCCG 更新时间:11/2/2023 访问量:49
当有大量请求时 PHP 重载
PHP overload when there are a lot of request
问:
我有一个网站接收了大量的流量负载,当 php 无法处理所有请求时,网络开始变慢,甚至在某些时候会导致错误 502 nginx,我在 php 文件中有这个设置,我一直在修改,但我找不到问题。服务器有 30 GB 的 RAM 和 8 个 CPU,运行 htop 命令我没有看到服务器已饱和。
有人可以帮助我修复它。
问候
原木
[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
答: 暂无答案
下一个:Laravel 查询错误的值格式
评论