Why is it so often that the Error 521 comes for my website.

I’ve been recently getting the ERROR 521 so often. Can someone help why and what can we do to stop this. Can’t have the website down. The mobile site is running fine but the Desktop version has issues.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


What I could suggest here are a few things:

  • Check the RAM and the CPU usage during the 521 errors

  • Check your services like Apache/MySQL/PHP and etc. in order to determine if any of them is crashing

  • Check your server logs for any specific errors

  • Try to optimize your Wordpress site so that it consumes less resources - for example install a caching plugin, reduce the number of the overall plugins that you are using, optimize your images and etc.

Once you’ve gathered this information then you could take some actions like maybe adding some extra resources like RAM and extra CPUs and/or optimize your services.

In case that you need some extra guidance, you could provide me with extra details on the current setup that you have like what is the web server that you are using, a copy of your log files during some of the 521 errors and etc.

Regards, Bobby