Php-fpm:hundreds of seconds in the log

Source: Internet
Author: User

Favorite
I have NGINX+PHP-FPM Web server
So I ' ve noticed in php5-fpm.log many strange lines:
[03-sep-2013 09:25:23] NOTICE: [Pool www] child 23999 exited with code 0 after 321.832329 seconds from start
[03-sep-2013 09:25:23] NOTICE: [Pool www] child 24082 started
[03-sep-2013 09:25:41] NOTICE: [Pool www] child 24032 exited with code 0 after 259.247887 seconds from start
[03-sep-2013 09:25:41] NOTICE: [Pool www] child 24083 started
[03-sep-2013 09:25:47] NOTICE: [Pool www] child 24033 exited with code 0 after 255.954602 seconds from start
[03-sep-2013 09:25:47] NOTICE: [Pool www] child 24084 started
[03-sep-2013 09:25:50] NOTICE: [Pool www] child 24014 exited with code 0 after 327.620462 seconds from start
[03-sep-2013 09:25:50] NOTICE: [Pool www] child 24085 started
[03-sep-2013 09:25:55] NOTICE: [Pool www] child 24034 exited with code 0 after 254.974653 seconds from start
[03-sep-2013 09:25:55] NOTICE: [Pool www] child 24086 started
[03-sep-2013 09:26:01] NOTICE: [Pool www] child 24035 exited with code 0 after 253.388234 seconds from start
[03-sep-2013 09:26:01] NOTICE: [Pool www] child 24087 started
[03-sep-2013 09:26:02] NOTICE: [Pool www] child 24036 exited with code 0 after 251.374430 seconds from start
[03-sep-2013 09:26:02] NOTICE: [Pool www] child 24088 started
[03-sep-2013 09:26:05] NOTICE: [Pool www] child 24019 exited with code 0 after 325.601766 seconds from start
[03-sep-2013 09:26:05] NOTICE: [Pool www] child 24089 started
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24037 exited with code 0 after 255.871955 seconds from start
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24090 started
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24038 exited with code 0 after 255.884311 seconds from start
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24091 started
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24039 exited with code 0 after 254.826181 seconds from start
[03-sep-2013 09:26:09] NOTICE: [Pool www] child 24092 started
[03-sep-2013 09:26:12] NOTICE: [Pool www] child 24040 exited with code 0 after 256.232759 seconds from start
[03-sep-2013 09:26:12] NOTICE: [Pool www] child 24093 started
[03-sep-2013 09:26:14] NOTICE: [Pool www] child 24027 exited with code 0 after 321.722533 seconds from start
Can anyone tell me, what is these seconds like after 321.722533 seconds from start and what does it mean?

UPD

My config is:

PM = dynamic
Pm.max_children = 50
Pm.start_servers = 20
Pm.min_spare_servers = 5
Pm.max_spare_servers = 35
pm.max_requests = 100
php-fpm

Accepted: Problem reply
"Seconds" is a unit of time; 321 of them is a little over five minutes.

The reason your processes is exiting, and respawning is so you have set the Pm.max_children option in your PHP-FPM pool Configuration file.

For example, taken from the default configuration:

; The number of requests each child process should execute before respawning.
; This can is useful to work around memory leaks on 3rd party libraries. For
; Endless request processing Specify ' 0 '. Equivalent to Php_fcgi_max_requests.
; Default value:0
Pm.max_requests = 500
We can see in your configuration that it was set to, thus php-fpm recycles the process after it had processed, Reque Sts.

Share|improve this Answer
Edited Sep 3 ' at 6:51

answered Sep 3 ' at 6:45

Michael hampton♦
55.9k767132

So, it means concrete thread lived 321 seconds and would be respawned. I can not pay attention on it? –lari13 Sep 3 ' at 7:00

You can ignore these messages; They is harmless and purely informational. –michael hampton♦sep 3 ' at 8:12

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.