Skip to main content

Server hangs, low resource usage, restarting php-fpm fixes it.

Comments

14 comments

  • cPRex Jurassic Moderator
    Hey there! It depends on what you mean by "outage" - what is the specific symptom when you try and visit the website? The best thing to do when the issue is actually happening would be to check both the Apache log file at /etc/apache2/logs/error_log and the Apache status with the "apachectl status" command to see what Apache is doing in real-time. One of those two things should show you why things aren't working well - for example, you may find an error in the log, or you may see that the scoreboard in the status output is full and Apache can't handle the traffic.
    0
  • mvandemar
    Hey there! It depends on what you mean by "outage" - what is the specific symptom when you try and visit the website?

    Literally nothing happens, it just hangs. I have looked at the logs as I mentioned, but again I am not sure what I am looking for. There was nothing in the Apache error log for the time period it was down today (a couple Connection refused messages 3 minutes prior to it going down, but those are all throughout the log), just notices in the php-fpm error.log. It's only php pages, static files are served just fine. -Michael
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. If it the issue only happens with PHP, I'd recommend checking the FPM logs at /opt/cpanel/ea-phpXX/root/usr/var/log/php-fpm. You'll just need to update the "XX" portion of the log data with the specific PHP version you're using on the system. That should have more specific details about the outage than the Apache log.
    0
  • mvandemar
    I'd recommend checking the FPM logs

    Rex, thanks, but as I mentioned I did, and there was nothing there but the same notices I get during the non-downtime period. I'm stumped. -Michael
    0
  • cPRex Jurassic Moderator
    Sounds like it's time to open a ticket, then.
    0
  • mvandemar
    Sounds like it's time to open a ticket, then.

    Thanks. I think I've narrowed it down to being an issue with php-fpm based on the fact that there appears to have been no mysql activity during the latest downtime: and I set up a monitor on a plain php file that had nothing but an echo statement in it, and that too was unresponsive. Is there a way to set the pm.status_path, ping.path, and listen directives in whm, as described in this article?
    0
  • cPRex Jurassic Moderator
    Yes - details on how to adjust those can be found here - Configuration Values of PHP-FPM | cPanel & WHM Documentation
    0
  • mvandemar
    Yes - details on how to adjust those can be found here -
    0
  • cPRex Jurassic Moderator
    It would seem that document I linked is a bit out of date, or at least doens't say you need to create those files manually. We do say that specifically here:
    0
  • mvandemar
    It would seem that document I linked is a bit out of date, or at least doens't say you need to create those files manually. We do say that specifically here:
    0
  • cPRex Jurassic Moderator
    Correct - those files are not required or else they would exist by default, but they are necessary when performing customizations. I have submitted a case to our documentation team to get that cleared up. Personal opinion - we're heading down the wrong direction with this. If there isn't anything in the FPM logs, setting up additional monitoring and watches isn't going to be helpful as we already know it isn't giving us log data. Since we're starting the third week of this thread, it's really time for a ticket so we can do some investigation.
    0
  • mvandemar

    cPRex Wow, the transition to the new system really screwed things up, didn't it... do you have the links to the documentation that disappeared by any chance? Thanks.

    -Michael

    0
  • cPRex Jurassic Moderator

    Honestly, at this time, no, I don't have a good way to find what that link was.  I likely will within a few days, and I'll leave this open as a reminder to myself to reply when I do have that information.

    0

Please sign in to leave a comment.