有如下的php-fpm错误日志:
cat /usr/local/php/logs/php-fpm.log
Oct 21 23:38:52.407395 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 21 23:38:52.407474 [NOTICE] fpm_children_bury(), line 215: child 20927 (pool default) exited with code 0 after 1692686.773259 seconds from start
Oct 21 23:38:52.408405 [NOTICE] fpm_children_make(), line 352: child 9211 (pool default) started
Oct 21 23:39:33.709800 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 21 23:39:33.709872 [NOTICE] fpm_children_bury(), line 215: child 21567 (pool default) exited with code 0 after 1690535.000303 seconds from start
Oct 21 23:39:33.710850 [NOTICE] fpm_children_make(), line 352: child 9245 (pool default) started
Oct 22 08:50:48.164463 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 22 08:50:48.164534 [NOTICE] fpm_children_bury(), line 215: child 23516 (pool default) exited with code 0 after 1716581.793889 seconds from start
Oct 22 08:50:48.165515 [NOTICE] fpm_children_make(), line 352: child 18565 (pool default) started
使用无异常。
考虑是否影响php性能:
1、以上日志显示的只是notice级别的信息,描述了php-fcgi子进程的正常退出以及开启新的子进程的过程。
2、如果希望不显示notice信息,可更改php-fpm.conf文件的如下位置:
3、子进程的自动重启由以下参数控制:
当子进程完成了500个请求后自动重启,可以在一定程度上防止PHP进程的内存泄漏。