Skip to main content

Intermittent Issues With Website Loading Speed

Comments

12 comments

  • cPanelLauren
    HI @dc1177 Looking through tickets I've found one other instance of an issue similar to this where the SSL details are being outputted into the PHP-FPM log - it doesn't look like there's an issue with the SSL though, in either your case or the one I found in our ticket system. What the suggestion was there was to increase the timeout for PHP-FPM to prevent the session from expiring which is what was causing the other user to have long load times. You can increase the PHP-FPM timeout from WHM>>Software>>MultiPHP Manager -> System PHP-FPM Configuration
    0
  • dc1177
    @cPanelLauren thank you for replying! I increased the "Process Idle Timeout" from 10 to 20 and tried to load my site. This time it took 38 seconds! It is the longest I have ever seen in my case. So should I maybe get rid of php-fpm? Can I disable it for my site just to see if anything changes or disabling it would break other stuff?
    0
  • dc1177
    I disabled php-fpm for my site and it just took ages to load.. ended up giving error "site could not be reached".. then after 25 seconds loaded. Could something be wrong with my DNS? I think another website I have on the server which runs on php 5.6 does not have this issue..
    0
  • cPanelLauren
    When you had php-fpm disabled and the site took an extremely long time to load, is anything of use output to the apache error log?
    0
  • dc1177
    Hello again. After googling and searching through this forum I decided to disable OCSP (suggested in another thread). Since then, the problem seems to be gone. I noticed that when I disabled the OCSP, about 4 services were restarted automatically (silly me did not write the names down). I have to verify somehow that OCSP is causing the issue so I am planning to do the following: -I will wait for another day to see if the problem appears again. Before disabling OCSP I would have the problem at least once every hour. So far no problem. -I will re-enable OCSP and make sure to write down the services the system restarts automatically. I will wait for 1-2 days for the problem to appear again. If the problem appears again it means that OCSP is probably causing the issue. If everything works fine, it might mean that the one or more of the services had to be restarted. I am a bit worried as cPanel suggests OCSP to be enabled. I will post again when I have news.
    0
  • cPanelLauren
    OCSP is the fastest protocol there is for verifying a certificate's status (determining whether or not a certificate is still valid or has been revoked) - it's an industry standard and really in normal circumstances shouldn't cause a delay like you were seeing. What would be helpful still is to check the output into the apache error logs when the issue occurred.
    0
  • dc1177
    Unfortunately (???) the issue disappeared after I disabled OCSP. I understand it was supposed to speed things up but for some reason it slowed things down.. I will have to do the test I mentioned in my previous post in order to verify or not that the issue was caused by OCSP. In the meantime the log in /etc/apache2/logs/error_log
    shows the same error as mentioned above in my first post /opt/cpanel/ea-php72/root/usr/var/log/php-fpm/error.log
    . The error though still appears every time I visit my site,no matter if it is slow or not. No extra info..
    0
  • cPanelLauren
    Hello @dc1177 That could work, if you're able to replicate the issue without OCSP enabled or if you'd like for OCSP to be enabled and you'd like for us to take a closer look at it I'd suggest opening a ticket with us, which can be done by using the link in my signature. Thanks!
    0
  • dc1177
    I just re-enabled the "SSLUseStapling" and my site took 19.30 seconds right away to load so I disabled "SSLUseStapling" again. What is a bit suspicious is the consistency of the time it takes to load each time.. 19.30, 19.26. 19.45.. those are the seconds I usually see.. I hope having "SSLUseStapling off " will not introduce any major security issues.
    0
  • cPanelLauren
    No, disabling the SSLUseStapling forces the check to occur in the browser which in some cases can save time. You can read about it here:
    0
  • dc1177
    cPanelLauren I noticed in the link you provided mentions that SSLUseStapling is by default off! Is there any chance that this changed in any recent cPanel/WHM update? Anyway I will consider the issue as solved for now but I will probably try to investigate more on my free time. :D Thanks again for the help!
    0
  • cPanelLauren
    Hi @dc1177 It's not necessarily a cPanel default. It depends on the certificate. It's detailed in this thread as well:
    0

Please sign in to leave a comment.