简体   繁体   English

错误522-服务器超载? 如何排除故障?

[英]Error 522 - Server overloaded? How to troubleshoot?

My site has been crashing recently displaying Error 522 (I use Cloudflare), and it looks like it is the result of a server overload (I have a VPS with GoDaddy). 我的网站最近一直崩溃,并显示错误522(我使用Cloudflare),它似乎是服务器过载的结果(我的GoDaddy具有VPS)。 I tried to dig around and found the following lines in Apache's log: 我尝试进行挖掘,并在Apache的日志中找到以下几行:

Script timed out before returning headers: index.php, referer: http://www.777auction.ca/online/index.php?module=listings&controller=browse&action=index&show=all&limit=80&sort=ending_asc&listing_type=auction

This line error appears almost every minute for the duration of my auction. 在我的竞标期间,几乎每分钟都会出现此线路错误。 If my site showed error 522 due to server overload, does that error mean the cause of the crash was when this specific page was viewed by users? 如果我的站点由于服务器过载而显示错误522,那么该错误是否表示崩溃的原因是用户查看此特定页面的时间?

I whitelisted Cloudflare's IPs on WHM. 我在WHM上将Cloudflare的IP列入了白名单。 How can I pinpoint the cause of the error and prevent it from happening again? 如何确定错误原因并防止再次发生?

Thank you 谢谢

As suggested, maybe it's DDoS in which case you could try changing your CloudFlare security settings to high or I'm under attack. 如建议的那样,也许是DDoS,在这种情况下,您可以尝试将CloudFlare安全设置更改为高,否则我将受到攻击。

It seems to me though that it would be good to gather more information first, because maybe this isn't the cause. 在我看来,最好先收集更多信息,因为这可能不是原因。 For example maybe you need to up the size of your server, or maybe you need to fine-tune your php or mysql settings, or up the php max_execution_time 例如,也许您需要增加服务器的大小,或者可能需要微调您的php或mysql设置,或者增加php max_execution_time

One place to start gathering more info would be by installing htop and then watch what happens to your memory and cpu, and which tasks are using your server resources. 开始收集更多信息的一个地方是安装htop ,然后观察内存和cpu发生了什么,以及哪些任务正在使用服务器资源。

Htop won't necessarily solve your problem but it will hopefully point you in the right direction. Htop不一定能解决您的问题,但希望它将为您指明正确的方向。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM