贪小便宜惹的祸[resin&&lighttpd]

  正在运行的一个RESIN服务器(Xeon5130*2,4G内存),一切都很正常,由去年12月份到现在基本每天都有1000个IP左右,1.7万页访问量,CPU空闲达到98以上.

  上星期五无事干就在服务器上安装了lighttpd,作为图片、视频等静态内容的服务器.减少resin处理静态内容的时间。

    星期六,星期日没有多大留意服务器运行情况。到星期一上班是,网站访问非常的慢,平均页面生成时间为5~6秒。利用TOP查看CPU使用情况,CPU只剩下10%,最大30%,大吃一惊,于是再查看了一个processlist.发现很多mysqld在运行(跟平时也一样), load average: 8.09, 8.06, 8.05 。

  很奇怪,一开始以为是MYSQL问题,把大表优化,MYSQL配置优化。重新启动。一切正常(CPU空间98%, load average: 0.09, 0.06, 0.05)。非常高兴,以为问题解决了。

  但是,当我启动lighttp服务器后,以上的问题又出现了。这一下我知道了,原来是lighttpd问题;

  最后我把lighttpd删掉了。直接用resin 作为 standalone server 。

  RESIN官方如是说:
引用

Before integrating Resin with Apache, it is valuable to configure Resin as a standalone server, especially with more complicated setups such as those involving virtual hosts. Doing so isolates the steps and makes troubleshooting easier.

你可能感兴趣的:(apache,mysql,虚拟机,配置管理,lighttpd)