Skip to main content

Figuring out the cause of "hanging" on JS (CSF, mysqltuner, EA4)

Comments

3 comments

  • cPanelMichael
    Example of issue Here's an example of the problem on a 'simple' Wordpress installation:
      ]
    • Enter URL
    • Login to admin
    • Click Posts or Pages, an area where multiple js is loaded (editor) and database lookups are needed, as well as images etc.
    • Watch network in Chrome and see it taking up to 20 seconds to load (or sometimes timeout) mostly js, css, and image files.
    I then disable CSF and find absolutely no issue - everything loads in under one second (~50ms).

    Hello @tone, The fact that everything works as expected when CSF is disabled suggests an issue with the firewall. Here are a couple of threads on the CSF forums where other users report the same issue: CSF 7.0.3 -- problem on all VPS servers - ConfigServer Community Forum Slow loading websites due to Firewall IP blocks - ConfigServer Community Forum You may want to review the CSF logs to see what activity is occurring to get a better idea of what's reducing website load times. Thank you.
    0
  • tone
    Hello @tone, The fact that everything works as expected when CSF is disabled suggests an issue with the firewall. Here are a couple of threads on the CSF forums where other users report the same issue: CSF 7.0.3 -- problem on all VPS servers - ConfigServer Community Forum Slow loading websites due to Firewall IP blocks - ConfigServer Community Forum You may want to review the CSF logs to see what activity is occurring to get a better idea of what's reducing website load times. Thank you.

    Hello Michael, Thank you for your helpful reply. It seems one cause was CSF blocking or severely limiting all Cloudflare IPs. Understabily, this caused 522 and similar errors. Whitelisting the Cloudflare IP range has resolved the issue, but it's by no means ideal (from what I understand). Do you have any opinion my the mysqltuner output? Regards, Piers EDIT: I also noticed that EasyApache4 is 'buggy' compared to EA3. EA3 worked and all parts or modules were compiled, this does not seem to be the case with EA4 (for example, not installing one option for php56 when it's selected). I've run the configuration again and it seems to have worked as intended.
    0
  • cPanelMichael
    Do you have any opinion my the mysqltuner output?

    You could check under "Variables to adjust" output and make some of the recommended changes to see if you notice a performance increase.
    EDIT: I also noticed that EasyApache4 is 'buggy' compared to EA3. EA3 worked and all parts or modules were compiled, this does not seem to be the case with EA4 (for example, not installing one option for php56 when it's selected). I've run the configuration again and it seems to have worked as intended.

    Feel free to open a new thread with any particular issues you are facing and we can help troubleshoot the problem. Thank you.
    0

Please sign in to leave a comment.