PHP-php-fpm错误日志

PHP-php-fpm错误日志

偏爱自由 发布于 2017-07-08 字数 1110 浏览 1100 回复 1

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

甜柠檬 2017-07-14 1 楼

1、以上日志显示的只是notice级别的信息,描述了php-fcgi子进程的正常退出以及开启新的子进程的过程。
2、如果希望不显示notice信息,可更改php-fpm.conf文件的如下位置:

<value name="log_level">notice</value>

3、子进程的自动重启由以下参数控制:

<value name="max_requests">500</value>

表示当子进程完成了500个请求后自动重启,这样做的好处是可以在一定程度上防止PHP进程的内存泄漏。