[WARNING] fpm_children_bury(), line 215: child 9341 (pool default) exited on signal 15 SIGTERM after

web服务器运行了几个月的时间,PHP的日志文件已经有几百M的大小,打开一看,结果基本全部都是一下的错误

Nov 04 07:26:20.315516 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD

Nov 04 07:26:20.315572 [NOTICE] fpm_children_bury(), line 215: child 9341 (pool default) exited with code 0 after 25996.675237 seconds from start

Nov 04 07:26:20.330815 [NOTICE] fpm_children_make(), line 352: child 4833 (pool default) started

Nov 04 07:28:01.586142 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD

Nov 04 07:28:01.586200 [NOTICE] fpm_children_bury(), line 215: child 9362 (pool default) exited with code 0 after 26067.697108 seconds from start

Nov 04 07:28:01.587232 [NOTICE] fpm_children_make(), line 352: child 4991 (pool default) started

Nov 04 07:29:44.510151 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD

Nov 04 07:29:44.510211 [NOTICE] fpm_children_bury(), line 215: child 9360 (pool default) exited with code 0 after 26172.109701 seconds from start

Nov 04 07:29:44.510694 [NOTICE] fpm_children_make(), line 352: child 5257 (pool default) started

查过网上的资源,基本都是认为是php线程打开文件句柄受限导致的错误。具体的解决的办法如下:

1 提升服务器的文件句柄打开打开

/etc/security/limits.conf : (增加) *    soft    nofile    51200 *    hard    nofile    51200

2. 提升nginx的进程文件打开数

nginx.conf : worker_rlimit_nofile 51200;

3. 修改php-fpm.conf文件,主要需要修改2处。

10240

51200

完成以上修改,警告信息即可避免。

你可能感兴趣的:(php)