raksmart活动促销

分享

写回答

发帖

[购买] 绝望的一天,早上被强制转移服务器,晚上被Disable Script……

国外虚拟主机 国外虚拟主机 3860 人阅读 | 11 人回复

发表于 2008-2-13 20:46:51 | 显示全部楼层 |阅读模式

网站运行了一个月,浏览量刚上来不到一个星期,就发生这种惨事
我的网站nebook.net是用wordpress建的,文章比较多,19000左右
刚开站的时候设置错误被封了wp-cron.php,交涉了两天才搞定
后来优化了一下,暂时能稳定的运行,没被找碴

今天登录gmail发现3封lunarpages的来信,看见标题俺的心就彻底冰凉了
一个是Welcome to Lunarpages - Critical Account Info(又发了一次账号信息,就知道有问题了)
一个是Account moved to server medon for resource stabilization(被转移到medon服务器了!)
一个是Script Disabled(又一次……)

Account moved to server medon for resource stabilization的内容
早上8点半收到的,现在才看到

Hello,
While monitoring the server where your account is located on, I had to move your account to a temporary server because your resource usage was way too high.

Here is your current account usage:
CPU Usage: 9.29
RAM memory Usage: 1.05
MySQL Average Queries: 0.6
Top Process %CPU 78.0 /usr/bin/php
Top Process %CPU 72.0 /usr/bin/php
Top Process %CPU 52.5 /usr/bin/php

This usage is not acceptable on a shared environment. Your CPU usage would need to be at least 9 times lower. Also, your account is executing way too many MySQL queries as the average should be at least 3 times lower.

Medon, the server where I moved your account is just a temporary server where your account can spend 1 week, maybe 2 if you need more time to fix all the issues. After this time you will either need to have all the problems fixed so we can move you back to the production server or you will need to upgrade your account to a dedicated server where the usage would fit much better. As being a stabilization server, the resources on the medon server are not guaranteed in any way.

We will be waiting for your fast answer and actions.

Script Disabled 的内容
晚上7点收到的。

Hello
While monitoring out server medo, we a notice high resource usage on your script
yourh14 yourhealthadvisor.org 11.07 3.71 2.4
Top Process %CPU 29.0 /usr/bin/php
Top Process %CPU 24.0 /usr/bin/php
Top Process %CPU 14.6 /usr/bin/php
hoohie3 hoohie.com 1.78 0.33 0.2
Top Process %CPU 14.0 /usr/local/cpanel/cgi-sys/php5.bin
Top Process %CPU 5.3 /usr/local/cpanel/cgi-sys/php5.bin
Top Process %CPU 0.1 httpd [artistsinhawaii.hoohie.com] [/evj/displayimage.php?album20&pos197]

We have to disable this script *******/public_html/nebook/index.php

Thank you
这封信里有hoohie.com和artistsinhawaii.hoohie.com我都不知道是什么东西
难道是被转移服务器后,我的网站显示的内容?

我想知道早上被转移到临时服务器后,我的网站难道还能正常访问?
运行了10个小时之后,再次超标所以被封了程序?

网站的流量刚上来一点:日IP 不到200,PV 1500左右
就这样的流量都CPU超标9倍

现在都不知道怎么办,上次靠初中水平的鸟语勉强解决了,这次再加上一个强制转移服务器……

回答|共 11 个

高兴的葫芦

发表于 2008-2-13 20:55:46 | 显示全部楼层

你买的是哪款 空间?独立IP买了吗?
RAKSmart

kusonico

发表于 2008-2-13 21:00:34 | 显示全部楼层

basic空间,没有独立IP
现在能登录ftp
无法登录cpanel……
网站无法登录,连放在里面的静态页面和图片都无法打开

大漠孤狼

发表于 2008-2-13 21:10:43 | 显示全部楼层

原帖由 kusonico 于 2008-2-13 08:46 PM 发表
网站运行了一个月,浏览量刚上来不到一个星期,就发生这种惨事
我的网站nebook.net是用wordpress建的,文章比较多,19000左右
刚开站的时候设置错误被封了wp-cron.php,交涉了两天才搞定
后来优化了一下,暂时能稳定的运行,没被找 ...

200ip不会有问题的,可能有别的原因

忧伤b小调

发表于 2008-2-13 23:26:10 | 显示全部楼层

估计是程序的问题.wordpress程序负载19000多篇文章估计不行...(我一直不看好wordpress)

看来你的blog做的挺大的,建议更换别的程序写,像joomla肯定没问题的,刚好现在1.5正式版出来了,SEF优化的很好.

kusonico

发表于 2008-2-14 01:01:28 | 显示全部楼层

晚上对程序开刀了
暂时的解决办法
关掉非必需插件:
Ajax Comments-Reply
Different Posts Per Page
Popularity Contest  
TDO Mini Forms
WP Stickiness
后面这三个调用数据库太多了,用wp的兄弟要注意,特别是Popularity Contest,直接扔了吧

修改theme
完成后测试
修改前后对比(本地测试)
index:    40 queries. 2.0300 seconds.
          19 queries. 1.5020 seconds.
category:         42 queries. 2.6580 seconds.
          19 queries. 2.3800 seconds.  
single:   91 queries. 1.5920 seconds.
          26 queries. 1.1810 seconds.
Archives:         39 queries. 1.7210 seconds.
          19 queries. 1.3030 seconds.
search:   66 queries. 2.6510 seconds.
          19 queries. 1.8650 seconds.

效果还算明显
还好只是封了index.php,还能进后台

奇怪的是为什么CPU占用一下子超标那么多,我这一个星期以来IP和PV都很稳定,一直在170~200 / 1200~1800之间徘徊
怎么今天早上突然超标那么多?
CPU Usage: 9.29  超了8倍多
MySQL Average Queries: 0.6 超了2倍
MySQL超标可以理解,开始程序不合理,数据库查询次数太多
CPU超了8倍就无法理解了

[ 本帖最后由 kusonico 于 2008-2-14 01:04 AM 编辑 ]
RAKSmart

kusonico

发表于 2008-2-14 01:07:29 | 显示全部楼层

我在wp后台开了GZIP,会不会是这个问题?
http://bbs.idcspy.com/viewthread.php?tid=16369&highlight=gzip
这里看到
"前面有好几个会员开了都挂了。
建议你还是别开了。"

开GZIP很占CPU吗?

忧伤b小调

发表于 2008-2-14 09:53:04 | 显示全部楼层

原帖由 kusonico 于 2008-2-14 01:07 AM 发表
我在wp后台开了GZIP,会不会是这个问题?
http://bbs.idcspy.com/viewthread.php?tid=16369&highlight=gzip
这里看到
"前面有好几个会员开了都挂了。
建议你还是别开了。"

开GZIP很占CPU吗? ...


GZIP原理是先压缩再上传,这个过程肯定会占系统资源的,主要是CPU和内存资源。

PV多的话,用LP虚拟机,建议关闭此功能.

kusonico

发表于 2008-2-15 19:26:22 | 显示全部楼层

交涉24小时过后,再次绝望
我的账号下有两个网站
主网站基本没流量,每天最多3个IP.
另外一个网站就是此次被封代码的那个,是wordpress程序,被封的是index.php
可以说WP没有index.php的话,就等于网站关闭了.
虽然后台能进,但我也没进去操作过什么

但是! 今天客服发信来说
监控了我24小时,账号还是超标!

have posted your current stats, which seems to be a tad bit high for cpu usage. We have to monitor your account for another 24 hours. If your account resources usage is acceptable then we will move your account back to our production server. Here is your resource usage for today:

yourh14 yourhealthadvisor.org
CPU usage: 1.29
Memory usage: 0.51
MySQL usage: 0.3
Top Process %CPU 29.0 /usr/bin/php
Top Process %CPU 24.0 /usr/bin/php
Top Process %CPU 14.6 /usr/bin/php

Please optimize your application for any coding issues.

所谓的1%CPU,0.2% mysql ,50 mysql连接数限制是指帐号下所有网站的总和吗?
也就是说10个网站加起来也只能达到占1%CPU?

就算是这样,一个日IP不超过3的站加一个完全关闭的站
也会超标?

完全没办法了.各位兄弟给支个招

大漠孤狼

发表于 2008-2-15 19:35:02 | 显示全部楼层

原帖由 kusonico 于 2008-2-15 07:26 PM 发表
交涉24小时过后,再次绝望
我的账号下有两个网站
主网站基本没流量,每天最多3个IP.
另外一个网站就是此次被封代码的那个,是wordpress程序,被封的是index.php
可以说WP没有index.php的话,就等于网站关闭了.
虽然后台能 ...

仔细检查一下日志看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则