1

We are facing issues with a php-fpm server that spawns too many children. This morning, I set up php-fpm's status page, and got an interesting piece of information : among all the scripts that are executed by the the children, one has a request duration that amounts to 3050111212255 µs which equals roughly to 35 days, which is the uptime of the machine, although we restart php-fpm recently. Here the output of the status page for this script.

pid:                  19998
state:                Idle
start time:           29/Aug/2014:14:48:25 +0200
start since:          578
requests:             244
request duration:     3050444744915
request method:       POST
request URI:          /app.php?_format=json
content length:       96
user:                 jobuser
script:               /home/frontoffice/instances/encoding/current/web/app.php
last request cpu:     0.00
last request memory:  7864320

Do you think this is a bug in php-fpm ?

5
  • I am facing the same weird problem too, did you find the reason? Nov 28, 2014 at 9:38
  • sadly, I did not.
    – greg0ire
    Nov 28, 2014 at 15:38
  • The weird thing is "request duration" > "start since" ^^ Nov 28, 2014 at 15:49
  • Yeah, it makes no sense :P
    – greg0ire
    Nov 28, 2014 at 15:58
  • If people would stop abandoning their questions and actually post the solutions when they find them it would sure be nice...
    – waltmagic
    Jan 5, 2023 at 3:02

2 Answers 2

1

Look like an old bug not resolved yet:

https://bugs.php.net/bug.php?id=62382

0

People who have same problem can try to add request_terminate_timeout = 300 to their php-fpm pool configuration

1
  • Thank you for your answer. I am going to add this to my config and see what I get. However, I think the problem is deeper. There must be an underlying reason why these processes are misbehaving. I have a few posts that are related and when I figure them out this thread is one that I will be updating. Thanks again.
    – waltmagic
    Jan 5, 2023 at 3:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .