Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by Nirjonadda, Jun 14, 2018.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    604
    Likes Received:
    15
    Trophy Points:
    68
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Nirjonadda,

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice