简体   繁体   English

当我在网站上连接时,centos Redhat上的Apache Web服务器加载时间很长

[英]Apache web server on centos Redhat has a big loading time when i connect on website

I have a website on an apache server (centOS RedHat) and sometimes (random) when i try to connect on site i have to wait like 5-30 minutes before i can see the page. 我在apache服务器(centOS RedHat)上有一个网站,有时(随机)在我尝试连接网站时,我必须等待5-30分钟才能看到页面。
I check the netstat and this is how it's look: 我检查了netstat,它是这样的:
tcp 0 0 site.example.com 1xx.xx.x.xxx:60971 ESTABLISHED I tried to search for problems, but i didn't find anything. tcp 0 0 site.example.com 1xx.xx.x.xxx:60971 ESTABLISHED我试图搜索问题,但没有找到任何东西。
So, somebody had the same problem and can help with this problem 因此,有人遇到了同样的问题,可以帮助解决这个问题
Thanks!. 谢谢!。

Well, you definitely need to look at your server configuration Is server overloaded? 好吧,您肯定需要查看您的服务器配置服务器过载了吗? At all, or in the moment of this website loading? 还是在此网站加载时? Don't you have MySQL slow queries in status output? 在状态输出中没有MySQL慢查询吗? Is your site entirely static or you're using PHP? 您的网站是完全静态的还是使用PHP?

Netstat is nothing to do about it, it only shows you that connection was established at all. Netstat与它无关,它仅向您显示已建立连接。

Did you look for apache logs for this website at all? 您是否在寻找该网站的Apache日志? Are there any other sites on the server? 服务器上还有其他站点吗? If you only face this issue with this one, you should take a look for the logs at first! 如果仅与此有关,请首先查看一下日志!

Take a look for your apache config too! 也来看看您的apache配置! You can find some examples here . 您可以在此处找到一些示例。

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

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