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()).
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()).
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.