Apache2极慢地服务页面 – 请查看服务器状态

在上个星期,我的VPS上的网站加载非常缓慢,有时甚至超时。 你能看看我的Apache2'服务器状态'输出,让我知道,如果你看到任何有趣的事情? 我看到很多“OPTIONS * HTTP / 1.0”请求,其中客户端是localhost(127.0.0.1)。 我真的不知道发生了什么事。

http://news.sweetboxing.com/server-status

任何帮助将不胜感激。

缺口。

对于第一个答复:

apache2.conf解压:

Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 2 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 40 MaxRequestsPerChild 500 # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 1 MaxClients 40 MinSpareThreads 1 MaxSpareThreads 4 ThreadsPerChild 25 MaxRequestsPerChild 500 

你在你的设置上运行cPanel吗? cPanel使用“OPTIONS * HTTP / 1.0”来检查服务器的状态,但是本身不应该在服务器上造成任何额外的负载,所以我的猜测是有其他的东西,没有你的附加信息很难推荐别的东西。

当检查您的状态页面以及浏览http://www.sweetboxing.com和http://www.sweetmma.com它快速回复我。 /服务器状态页面也没有显示任何当前高负载,所以现在它可能也很平静你呢?

如果Apacheconfiguration为允许连接太less,如果在高使用率下内存不足,则通常必须在页面加载速度缓慢的情况下观察服务器,以更好地了解问题所在。 也许你正在遭受攻击,或者你可能只是有人链接你的网站stream行的东西? 事后阅读日志和主动监视性能的组合通常会给你更多的细节。

编辑1

我真的认为你这个街区的低价值是什么原因导致你有时会出现排队和低绩效。 尝试这样的事情:

 <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 5 MaxSpareServers 5 MaxClients 100 ServerLimit 100 MaxRequestsPerChild 100 </IfModule>