php-fpm.log 都是错误,老哥看看是不是应该修改这些
还是那样,我系统资源很空,比如内存,CPU等php-fpm.log 不分日志
NOTICE: child 50564 started
NOTICE: child 50483 exited with code 0 after 1637.719969 seconds from start
NOTICE: child 50565 started
NOTICE: child 50482 exited with code 0 after 1638.248793 seconds from start
NOTICE: child 50566 started
NOTICE: child 50476 exited with code 0 after 1648.544540 seconds from start
NOTICE: child 50567 started
NOTICE: child 50479 exited with code 0 after 1645.657868 seconds from start
NOTICE: child 50568 started
NOTICE: child 50470 exited with code 0 after 1656.210515 seconds from start
NOTICE: child 50569 started
NOTICE: child 50474 exited with code 0 after 1653.198454 seconds from start
NOTICE: child 50570 started
NOTICE: child 50481 exited with code 0 after 1649.860106 seconds from start
NOTICE: child 50571 started
NOTICE: child 50485 exited with code 0 after 1643.337957 seconds from start
NOTICE: child 50572 started
NOTICE: child 50478 exited with code 0 after 1656.368243 seconds from start
NOTICE: child 50573 started
NOTICE: child 50484 exited with code 0 after 1649.844858 seconds from start
NOTICE: child 50574 started
NOTICE: child 50475 exited with code 0 after 1664.822114 seconds from start
NOTICE: child 50575 started
NOTICE: child 50488 exited with code 0 after 1640.314789 seconds from start
NOTICE: child 50576 started
NOTICE: 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
谢谢军哥
最终我修改成了这个
pm.max_children = 1000
pm.start_servers = 510
pm.min_spare_servers = 20
pm.max_spare_servers = 1000
pm.max_requests = 10000
不知道是不是合理 这只是NOTICE只是最基本的信息输出,不算错误信息,只有error才是错误信息
可以修改,这些参数本身就是需要根据自己机器和网站调整的
页:
[1]