at the moment I'm mentioning that a lot of connections are gracefully finishing if I visit my apache2 status-page.

What does that mean and why are they gracefully finishing? Some of them are in this state for 5-10min.

The server uses Apache 2.4 with event-worker and PHP-FPM as PHP-handler.

Gracefully finishing


What value do you have set for MaxConnectionsPerChild? I've found that when this is too low, and the processes restart, this is what causes those Gs.


I had this problem with a few PHP scripts and finally resolved it. I had written a script to close and release the browser connection but continue processing the script. The problem was my script was timing out (because it was doing a time-intensive activity) causing the connection to be stuck in "Gracefully finishing." My PHP was doing some third party API calls via a loop in a script and so in the loop I just kept resetting the PHP time limit within the loop (set_time_limit()).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.