Skip to main content

Server is failing to asynchronously serve files? Extremely bad performance when embedded videos are present on page.

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there, I'm not sure I'm going to be of much assistance on this one, since the type of content you are serving won't be related to any cPanel settings. One thing that may be worth checking is that you have a similar Apache and PHP configuration on the new machine as on the old one. You can actually move the entire EasyApache configuration over to the new system directly in the WHM >> Transfer Tool with just a few clicks, which is outlined in our documentation here:
    0
  • ap-cnet
    I actually did transfer all configs, but I made a few changes:
    • PHP 70 and 71 removed, PHP 80 added
    • mod_security2 added (but also tested with it removed)
    • mod_mpm_worker removed and mod_mpm_prefork added
    • mod_suexec and mod_suphp removed and mod_ruid2 added
    So.. for the sake of completeness, after doublechecking the EA config I went ahead and made the new server use the same EA settings as the old server, switching back to mpm_worker and suexec/suphp. The issue seems to be resolved on that config. I then went and started re-enabling those settings one at a time and now it seems I am back to where I started config wise but suddenly everything is working as expected. Server is on prefork with ruid2 and mod_sec enabled and its no longer blocking the page load even on a hard refresh. Something must have been broken with either ruid2 or mpm_prefork the first time it was configured but now its better? Tried it on multiple endpoints and multiple browsers and it appears all is well. Curious to know what might have happened.
    0
  • cPRex Jurassic Moderator
    Based on your description I'm not completely sure what could have happened with that. If you see something similar happen in the future it would be good to see if there are any logs written to the /etc/apache2/logs/error_log file on the system that may provide more details.
    0
  • ap-cnet
    I did check the error logs at the time but there was nothing that seemed to match up with what I was experiencing. Parsing through it again now, the only entries I see from Friday that are not expected are quite a few "Request exceeded the limit of 10 internal redirects" but I am not sure which site that references on the server and the client IP for those log entries are not my IP, so i think it was some other site/request. In fact, there aren't any error log entries logged for a connection to my IP. This server has a bunch of old internal sites that were migrated as test subjects and it wouldn't surprise me if one of those is entirely broken but still getting hit by crawlers.
    0
  • cPRex Jurassic Moderator
    The "exceeded" error you mention would usually happen due to a misconfiguration inside the .htaccess files on the machine, but you'd see that specific error in the browser if that was the case. No matter what, I am glad things are working well at this point.
    0

Please sign in to leave a comment.