php / php-src

The PHP Interpreter
https://www.php.net
Other
37.96k stars 7.73k forks source link

PHP-FPM Hung in PHP 8.2 #15787

Closed jruston closed 1 day ago

jruston commented 1 week ago

Description

I am encountering a strange issue as of PHP 8.2.22, where it seems PHP-FPM suddenly hangs and no longer responds to web requests. This causes the requests to queue, causing huge server loads. This is then resolved by restarting the PHP-FPM service.

It's possible that this has occurred in previous versions of 8.2, but it seems to have become more frequent as of 8.2.22. The issue still occurs in 8.2.23. It appears to be quite a rare issue, as this is a high traffic server and it only happens once every 7 - 14 days. However, when it does occur, it is highly disruptive. I have built a script which automatically restarts PHP-FPM if the server load reaches a certain level which does reduce the disruption, but it would be nice to get the root issue fixed.

It is quite difficult to provide information on what is happening, because there doesn't seem to be any segmentation faults. There is nothing noticeable in the logs, and I can't identify any particular pattern in these events. They occur at different times on different days, with a variety of traffic loads.

If you have any ideas of how I can collect more information to assist you with fixing it, I'd love to hear them.

PHP Version

PHP 8.2.23

Operating System

AlmaLinux 8.10

devnexen commented 1 week ago

Did you enable debug log level ?