raksmart活动促销

分享

写回答

发帖

今早收到了lp的信,谁帮我看下该怎么回啊?

回答|共 17 个

ultramanclub

发表于 2007-12-20 10:38:58 | 显示全部楼层

1千IP如果是交互站点的话,很容易超资源的。虚拟主机不是很适合你。

kusonico

发表于 2007-12-25 01:36:55 | 显示全部楼层

我才郁闷呢
晚上刚传的网站和数据库,站开通不到2小时,根本就我一个人在上,生成了一个sitemap
上传给google,站就给停了!

Top Process %CPU 41.6 /usr/bin/php
Top Process %CPU 12.0 /usr/local/cpanel/cpanel ./frontend/lp/files/doupload.html
Top Process %CPU 9.8 /usr/bin/php

CPU 4.10%
MEMORY 5.96
MYSQL 4.8

我用的wordpress
说wp-cron.php这个文件占系统资源太高

到底是CPU占用太高还是MYSQL连接数太多???
怎么PHPMYADMIN都无法登录了

怎样才能给我解封?
要发信给support吗?

fanqi1234

发表于 2007-12-25 05:51:32 | 显示全部楼层

wp-cron.php是wp的计划任务?你都做什么了?

大象无形

发表于 2007-12-25 08:59:33 | 显示全部楼层

原帖由 美国佬 于 2007-12-19 15:46 发表
Note: Replying more than once may delay our response time, because your ticket will be placed at the bottom of our ticket queue.


-------------------------------------------------------------------- ...


联系他们看看有什么办法解决吧。
一般是你去掉占用资源过多的内容

kusonico

发表于 2007-12-25 14:11:47 | 显示全部楼层

wp-cron.php是wp的计划任务吗?
惨了,肯定是那个XML Sitemap Generator
我的站有12500篇文章,一次生成了2.5M xml格式的sitemap
然后我选择了"Build the sitemap in a background process (You don't have to wait when you save a post)"
但我也没加新的文章啊
不至于生成一次sitemap就被封了吧,那这个插件岂不是成鸡肋了

我还装了个Dagon Design Sitemap Generator
这个应该没关系吧

到现在还是打不开网站,照它的意思,我要把它说占系统资源过多的wp-cron.php去掉?
那WP还怎么用...
太郁闷了.

忧伤b小调

发表于 2007-12-26 01:07:35 | 显示全部楼层

12500篇文章生成的时候,估计用的时间不短吧.

生成文章的时候,很占用CPU的.

kusonico

发表于 2007-12-27 16:41:56 | 显示全部楼层

貌似暂时解决问题了,网上搜索了一天
我看了一下wp_options表里的cron字段
复制出来后发现都是类似于
a:2:{s:8:"schedule";b:0;s:4:"args";a:0:{}}}}i:1197779846;
a:1:{s:8:"do_pings";a:1:{s:32:"40cd750bba9870f18aada2478b24840a";
之类的东西
这个字段里的内容有940多K!
在wp的support里找到一个解释
http://wordpress.org/support/topic/121680
You have 17 instances of "do_pings" scheduled but which can't seem to run. These are scheduled whenever you make a new post. Their purpose is to process the pingbacks and trackbacks for that post. They also handle enclosures and such.

The best way to get rid of them is to let them process, except that they can't for some reason. I'm guessing that your server is not allowing outside connections or something and so they hang indefinitely.

A temporary fix: Add this to your theme's functions.php file:
remove_action('do_pings', 'do_all_pings', 10, 1);

That will let those do_pings process through, doing nothing, and then getting removed. However, this will also stop pingbacks/trackbacks/enclosures from working. But if that's acceptable to you, there you go.

再新建了一个wp,空数据库发布了两篇文章
发现cron字段里的内容只有a:1:{s:7:"version";i:2;}
于是将cron字段里内容替换为a:1:{s:7:"version";i:2;}
以防万一再将模版里的functions.php加上
remove_action('do_pings', 'do_all_pings', 10, 1);
貌似pingbacks/trackbacks/enclosures不能使用了.我想我也用不到那些东西

发信给support让他解除了wp_cron.php的封锁
自己浏览了一下.再也不敢用sitemap生成器了.

现在看邮箱都是提心吊胆的.生怕又收到scipts disabled的信

BTW:虽然wp_cron.php被封锁了WP还能正常使用,但是最好暂时修改config将网站关闭
在http://trac.wordpress.org/ticket/3713这里说到
Missing wp-cron.php might put huge stress on the Server
貌似因为死循环什么的

[ 本帖最后由 kusonico 于 2007-12-27 04:44 PM 编辑 ]

大漠孤狼

发表于 2007-12-27 16:54:17 | 显示全部楼层

估计是文章太多了

clivt

发表于 2007-12-28 03:01:11 | 显示全部楼层

我感觉用网站程序的,超过1000IP就要小心了~

大漠孤狼

发表于 2007-12-28 08:56:59 | 显示全部楼层

原帖由 clivt 于 2007-12-28 03:01 AM 发表
我感觉用网站程序的,超过1000IP就要小心了~

影响因素很多,1000ip如果其它方面优化好问题不大

按照我们论坛的统计,一般以上的流量都是蜘蛛采集器消耗的,而像51.la这样的统计是不统计这些流量的,所以实际的可能要比你看到的大很多
您需要登录后才可以回帖 登录 | 注册

本版积分规则