/var/log/php-fpm/php-fpm.log flooded with: NOTICE [pool www] child <PID> exited with code 0 | child <PID> started

2,699 views
Skip to first unread message

Velizar Dimitrov

unread,
Feb 16, 2015, 10:00:32 AM2/16/15
to highloa...@googlegroups.com
Hello, Colleagues

/var/log/php-fpm/php-fpm.log is flooded with gigabytes of entries like: 

[16-Feb-2015 16:36:56] NOTICE: [pool www] child 13666 exited with code 0 after 112.150166 seconds from start
[16-Feb-2015 16:36:56] NOTICE: [pool www] child 13753 started
[16-Feb-2015 16:36:56] NOTICE: [pool www] child 13672 exited with code 0 after 112.264375 seconds from start
[16-Feb-2015 16:36:56] NOTICE: [pool www] child 13754 started
[16-Feb-2015 16:37:01] NOTICE: [pool www] child 13674 exited with code 0 after 116.638567 seconds from start
[16-Feb-2015 16:37:01] NOTICE: [pool www] child 13756 started
[16-Feb-2015 16:37:05] NOTICE: [pool www] child 13695 exited with code 0 after 112.080592 seconds from start
[16-Feb-2015 16:37:05] NOTICE: [pool www] child 13758 started
[16-Feb-2015 16:38:04] NOTICE: [pool www] child 13736 exited with code 0 after 115.754172 seconds from start
[16-Feb-2015 16:38:04] NOTICE: [pool www] child 13776 started

Sometimes children processes are respawned after just milliseconds of run time.
My config is:
$ php5-fpm --version
PHP 5.3.29-1~dotdeb.0 (fpm-fcgi) (built: Aug 14 2014 20:01:13)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

/etc/php5/fpm/pool.d/www.conf:
pm = dynamic
; For a server with 16GB memory
pm.max_children = 84
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 21
pm.process_idle_timeout = 20s;
pm.max_requests = 1000

If this logging behavior is normal for my server's load (how can I verify?), how should I disable these NOTICE entries in php-fpm.log?
I already set in /etc/php5/fpm/php.ini:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

Logging of the above NOTICE message continues even after service restart.

Thank you in advance!


Jérôme Loyet

unread,
Feb 16, 2015, 10:23:00 AM2/16/15
to highloa...@googlegroups.com
error_reporting filters logs from PHP (core) while the NOTICE lines you are referencing are generated by FPM (daemon).

As seen in the main FPM configuration file, you should set the "log_level" directive to warning at least.

++ jerome

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
;log_level = notice

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages