VPS侦探论坛

 找回密码
 注册
查看: 1425|回复: 2

php-fpm.log 都是错误,老哥看看是不是应该修改这些

[复制链接]
发表于 2023-3-18 12:36:01 | 显示全部楼层 |阅读模式

还是那样,我系统资源很空,比如内存,CPU等

php-fpm.log 不分日志

[18-Mar-2023 11:32:44] NOTICE: [pool www] child 50564 started
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50483 exited with code 0 after 1637.719969 seconds from start
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50565 started
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50482 exited with code 0 after 1638.248793 seconds from start
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50566 started
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50476 exited with code 0 after 1648.544540 seconds from start
[18-Mar-2023 11:32:54] NOTICE: [pool www] child 50567 started
[18-Mar-2023 11:32:55] NOTICE: [pool www] child 50479 exited with code 0 after 1645.657868 seconds from start
[18-Mar-2023 11:32:55] NOTICE: [pool www] child 50568 started
[18-Mar-2023 11:32:55] NOTICE: [pool www] child 50470 exited with code 0 after 1656.210515 seconds from start
[18-Mar-2023 11:32:55] NOTICE: [pool www] child 50569 started
[18-Mar-2023 11:32:57] NOTICE: [pool www] child 50474 exited with code 0 after 1653.198454 seconds from start
[18-Mar-2023 11:32:57] NOTICE: [pool www] child 50570 started
[18-Mar-2023 11:33:03] NOTICE: [pool www] child 50481 exited with code 0 after 1649.860106 seconds from start
[18-Mar-2023 11:33:03] NOTICE: [pool www] child 50571 started
[18-Mar-2023 11:33:04] NOTICE: [pool www] child 50485 exited with code 0 after 1643.337957 seconds from start
[18-Mar-2023 11:33:04] NOTICE: [pool www] child 50572 started
[18-Mar-2023 11:33:05] NOTICE: [pool www] child 50478 exited with code 0 after 1656.368243 seconds from start
[18-Mar-2023 11:33:05] NOTICE: [pool www] child 50573 started
[18-Mar-2023 11:33:09] NOTICE: [pool www] child 50484 exited with code 0 after 1649.844858 seconds from start
[18-Mar-2023 11:33:09] NOTICE: [pool www] child 50574 started
[18-Mar-2023 11:33:09] NOTICE: [pool www] child 50475 exited with code 0 after 1664.822114 seconds from start
[18-Mar-2023 11:33:09] NOTICE: [pool www] child 50575 started
[18-Mar-2023 11:33:10] NOTICE: [pool www] child 50488 exited with code 0 after 1640.314789 seconds from start
[18-Mar-2023 11:33:10] NOTICE: [pool www] child 50576 started
[18-Mar-2023 11:33:11] NOTICE: [pool www] child 50477 exited with code 0 after 1662.132097 seconds from start







是不是我需要改进这几个参数

pm.max_children = 90
pm.start_servers = 40
pm.min_spare_servers = 40
pm.max_spare_servers = 90
pm.max_requests = 1536


比如改成

pm.max_children = 1400
pm.start_servers = 710
pm.min_spare_servers = 20
pm.max_spare_servers = 1400
pm.max_requests = 10000


机器配置是

E5-2630L
24 Cores x 2.0 GHz
内存 32 GB


谢谢军哥
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-3-18 12:58:01 | 显示全部楼层


最终我修改成了这个
pm.max_children = 1000
pm.start_servers = 510
pm.min_spare_servers = 20
pm.max_spare_servers = 1000
pm.max_requests = 10000


不知道是不是合理
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-3-18 19:41:20 | 显示全部楼层

这只是NOTICE只是最基本的信息输出,不算错误信息,只有error才是错误信息
可以修改,这些参数本身就是需要根据自己机器和网站调整的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-5 14:57 , Processed in 0.025677 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表