Skip to main content

Apache restart loop & stuck PHP-FPM processes

Comments

7 comments

  • cPanelLauren
    Hi @APatchworkBoy While in this instance it looks like your issue was related to the PHP-FPM user pool being maxed out I do think there is a further issue here as it shouldn't enter into a restart loop like this. I believe that this issue warrants more in-depth investigation and because of that can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0
  • APatchworkBoy
    Evening @cPanelLauren (UK time)... ta for that - basic investigation = I suspect the root cause was an XMLRPC attack resulting in the segfault. Mod_security _was_ blocking this at the time so not sure why it resulted in segfaults (poss linked to opcache & php-fpm in use?). The IP has since been added as a deny rule in /etc/hosts.allow - details in the ticket. Ticket ID: 10200131 Normal day-to-day use, the server rarely gets anywhere _near_ hitting maxchildren.
    0
  • cPanelLauren
    Hi @APatchworkBoy I'm glad you opened a ticket I just checked in on it and it seems that you may have identified a coding issue as the cause for the problem as well? Thanks!
    0
  • APatchworkBoy
    Sorry @cPanelLauren - been on leave for a week...! Combination of issues - maxrequestworkers too low combined with a possible coding error resulting in a PHP Session race condition causing maxrequestworkers to be hit. Am waiting for recurrence to identify for certain, although I think the session race condition"s now been mitigated so may never know (nothing concrete in the logs to indicate it _was_ a race, but as I"ve said: ordinarily this box gets nowhere near hitting it"s limits). My segfault references in earlier post weren"t segfaults - misdiagnosis at my end! Have tweaked config according to suggestions by (the ever-wonderful) Roman and will be monitoring from tomorrow when the server will be back under it"s 'usual' workload (educational establishment - all staff & students have been off for 6 weeks so server traffic was technically at it"s lowest when all this happened).
    0
  • cPanelLauren
    Hi @APatchworkBoy I'm glad to hear that they were able to get you situated, it's easiest to identify an issue when you're able to access the server and see what's going in real time. Thanks!
    0
  • masterross
    Hi @APatchworkBoy and @cPanelLauren, Last night I had similar problem. Httpd fell down and restarted few times but not the php_fpm and all site using it were down. Can you please share your tweaks? Thank you!
    0
  • cPanelLauren
    Hello @masterross Without knowing why it failed it's hard to provide advice. If you check the error logs as listed previously in this thread and post relevant errors we might be able to assist better
    0

Please sign in to leave a comment.