Meaning of child exit/start entries in PHP-FPM logs

Nirjonadda

Well-Known Member
May 8, 2013
742
28
78
cPanel Access Level
Root Administrator
php-fpm: hundreds of seconds in the log, Can anyone tell me, what are these seconds like after 51.320215 seconds from start and what does it mean?

Code:
[14-Jun-2018 21:46:39] NOTICE: [pool mysite.com] child 4296 exited with code 0 after 51.320215 seconds from start
[14-Jun-2018 21:46:39] NOTICE: [pool mysite.com] child 4316 started
My config is

Code:
pm = ondemand
pm.max_children = 500
pm.max_requests = 20
pm.max_spare_servers = 5
pm.min_spare_servers = 1
pm.process_idle_timeout = 10
pm.start_servers = 0
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello @Nirjonadda,

[14-Jun-2018 21:46:39] NOTICE: [pool mysite.com] child 4296 exited with code 0 after 51.320215 seconds from start [14-Jun-2018 21:46:39] NOTICE: [pool mysite.com] child 4316 started
pm.max_requests = 20
You have pm.max_requests set to '20'. Thus, as soon one of the PHP-FPM child processes reaches 20 requests, the child process exits. Then, PHP-FPM automatically opens a new child process once it's needed. The number of seconds you see in the log output is telling you how long it took for that specific child process to reach 20 requests.

Keep in mind these are just NOTICE entries, and do not indicate an error. You'd only need to modify the PHP-FPM configuration settings if you were encountering performance problems.

Thank you.