本帖最后由 taller1980 于 2020-11-14 08:51 编辑
宝塔的php日志提示如下:
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 73 total children
2核4G2M的服务器,php网站使用伪静态+memcached缓存,每天访问量pv 2000左右,我使用了宝塔默认4G的优化方案,但是仍然会有开头的提示,一般 warning 出现在后半夜,是访客很少的时候。
这种php fpm超限直接导致 CPU被占满 100%超过10分钟,然后系统才自动降低下来。
我自己试着调整了一下,max children 超过 80的话,并发方案就会自动改成1G内存。
start 我提升到 20, min spare 提升到15,max spare 提升到40,只能等后期持续观察了。
请问下图中的四个数字项目应该如何设置才能减少报警次数?
|
|