[WARNING] fpm_children_bury(), line 215: child 9341 (pool default) exited on signal 15 SIGTERM after
2011-11-04 15:18
239 查看
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处。
<value name="max_requests">10240</value>
<value name="rlimit_files">51200</value>
完成以上修改,警告信息即可避免。
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处。
<value name="max_requests">10240</value>
<value name="rlimit_files">51200</value>
完成以上修改,警告信息即可避免。
相关文章推荐
- [WARNING] fpm_children_bury(), line 215: child 2736 (pool default) exited on signal 15 SIGTERM after 59.588363 seconds from star
- 解决:[WARNING] fpm_children_bury(), line 215: child 2736 (pool default) exited on signal 15 SIGTERM after 59.588363 seconds from start
- [WARNING] fpm_children_bury()
- BEAMER中 Package Listings Warning: Text dropped after begin of listing on input line xx
- Error: mysql error: mysql: [Warning] Using a password on the command line interface can be insecure
- mysql 备份报错mysqldump: [Warning] Using a password on the command line interface can be insecure.
- mac gdb调试 解决warning: unhandled dyld version (15) [Inferior 1 (process 660) exited normally]
- Warning: Invalid argument supplied for foreach() in /home/XXX/XXXX_html/category.php on line 100解决
- 在php添加mongo过程中出现的mongo.so: > undefined symbol: php_json_encode in Unknown on line 0. After installation mongo driver for php 的错误
- 关于启用php_curl.dll后PHP Warning: PHP Startup: in Unknown on line 0之烦恼~~
- sh: line 0: kill: SIGUSR1: invalid signal specification
- sh: line 0: kill: SIGUSR1: invalid signal specification
- PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
- Warning: Unexpected character in input: '' (ASCII=21) state=1 in /usr/local/php/bin/php-cgi on line 383
- worker process 245421 exited on signal 11
- PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
- Lexical error at line 15, column 17. Encountered: "\uff0c" (65292), after : ""
- PHP "Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0" 错误
- command line warning #10006: ignoring unknown option '/NODEFAULTLIB'错误解决(XPDF编译时出现的问题)
- MYSQL 5.7 Linux脚本出现[Warning] Using a password on the command line interface can be insecure.