服务器最大限度地连接和RAM

我们专门在GoDaddy上运行一个WordPress博客。 看来,每当我们得到大量的并发用户(大约100),该网站宕机。 根据GoDaddy的build议,我们一直在修复它的方法是运行service httpd start

以上是临时修复。 而且由于我们的stream量达到了大量的并发用户,httpd服务一直在下降。

我们也通过与GoDaddy聊天来解决这个问题:

 Server Concierge: Apache is maxing out your resources. As soon as I started Apache you went from 500 megs free of RAM to 0 free. Server Concierge: Currently it appears that you have over 500 connections to the server at the same time. Server Concierge: The majority of the connections are coming from just a few users. Server Concierge: You will need to ensure that your site is optimized to close Apache connections once they are finished. 

我们需要做些什么来使Apache处理我们的stream量? 我们有SSH访问,所以如果我们可以一步一步的执行命令,我们可以解决这个问题。

由于“服务器端服务器”报告大部分连接来自less数用户,编辑/etc/httpd/httpd.conf并configuration以下内容(这些是示例值):

 KeepAlive On MaxKeepAliveRequests 50 KeepAliveTimeout 5 

只是作为一个开始。

另外,如果确实只是一个WordPress博客,请安装wp-cache或wp-super-cache。 要么你能处理交通的能力有很大的不同。