Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] hostgator暂禁了我的discuz站, 说太耗cpu,请优化代码?(已经解决)

[复制链接]
wx_sE5YYXd0 发表于 2018-11-5 14:35:54 | 显示全部楼层 |阅读模式
本帖最后由 wx_sE5YYXd0 于 2018-11-7 15:34 编辑

邮件是这样:

Hello,

We have temporarily disabled /home3/。。。/public_html because it was causing performance issues on the server. Generally, we attempt to resolve these issues without disabling sites; however, this site began to affect the performance for all users on the system. In this case, we acted to preserve the overall server stability. The report at the end of this ticket provides additional information about the site activity during this period.

另一封邮件这样解释:

Hello,

The script installed in your public_html folder is generating a large amount of CPU usage, which caused the account to be restricted. In order to optimize the script, you will need to contact the original developer of the script for steps on what can be done to optimize it. At this time, we have granted restricted access to you by enabling password protection.

User: 。。。
Password: 。。。

Please let us know when you are ready to have your site re-evaluated. If you require any assistance or have any questions please let us know.


我用discuz3.4,我之前看hostgator的portal里显示cpu load一直并不高啊

请问各位大大该怎么做呢?



11月7日更新:

hostgator又回复我啦,说要我优化代码,还说vps没用,要我买专用主机 我可付不起啊,大家觉得该怎么办??

Greetings,

Thank you for your response. We strive to provide the best customer service and hosting experience to all our customers. We appreciate your business and value your loyalty.

Our team has made a temporary block on the account for excessive CPU usage from your PHP forum script. Looking at the issue, this is a problem that unfortunately is beyond our scope of support. However, I would be happy to help guide you in the correct direction or provide you with the resources that you need that will help you with what you are trying to accomplish.

We can not provide a step-by-step guide on how to optimize the script, however, in general, introducing new indexes, cleaning databases, optimizing existing code, upgrading to the latest versions and adding some sort of caching mechanism, where the script does not need to generate a new page with every request, helps to lower the over load that a script will cause. Likely the original author or support group of the software that you are using will be able to help you to understand how to add something of this nature.

Moving to a VPS server would not be beneficial as this environment would not resolve the issue. The same goes for a Dedicated server, as this may just allow more space for the processes to run, and exacerbate the issue. Moving to a VPS is not an upgrade however you can consider a Dedicated server with optimization to the forum pages and/or database.We can assist you in migrating to the new server.

The process for transferring content from one server to another involves a few standard steps. Moving a copy of the content of files or an archived and packaged backup of the content. Restoring and reconfiguring those files so they work as intended on the destination server. Test the new location based on IP or another option to view content without interrupting the normal traffic for the site. DNS changes can take a short while to propagate. You can check the DNS configuration here: http://intodns.com. This process can be easy for simple html files or a bit more complex depending on the needs of the site and related services.

Here is a helpful Knowledge Base article that explains more about our transfer policy: http://support.hostgator.com/articles/hosting-guide/website-transfers/hostgator-website-transfers

You will need to purchase the new server first. Once the payment is processed, the account is active and provisioned with cPanel, we can begin the migration. It is crucial to have updated software on the server not strictly due to future cPanel versions no longer supporting it, but to prevent potential security vulnerabilities. Let us know if there is anything else that we can assist you with at this time. Thank you very much! We look forward to hearing from you.
Best Regards,



11月7日更新#2:

装了那个采集防御插件后,空间回我说问题解决,已经解禁!谢谢大家!


Greetings,

Thank you for your response . It appears that your modifications were successful. I have verified that there are no restrictions on your account and we will continue to monitor the situation. Please note that if this account over uses resources, we may have to, once more, disable the content in question. Please let us know if you have any questions.

Best Regards,



评分

1

查看全部评分

 楼主| wx_sE5YYXd0 发表于 2018-11-5 14:42:33 | 显示全部楼层
不好意思帖子发了好多遍,因为之前页面显示错误我以为没发成功
回复

使用道具 举报

crx349 发表于 2018-11-5 15:03:27 | 显示全部楼层
意思是让你换vps或云服务器哦
虚拟空间 一般超cpu就警告
回复

使用道具 举报

 楼主| wx_sE5YYXd0 发表于 2018-11-6 15:51:53 | 显示全部楼层
crx349 发表于 2018-11-5 15:03
意思是让你换vps或云服务器哦
虚拟空间 一般超cpu就警告

是这样吗!好!谢谢哦
回复

使用道具 举报

775331433 发表于 2018-11-7 09:24:39 | 显示全部楼层
你可以试下这个https://addon.dismall.com/?@jcrs_bot.plugin.80021
回复

使用道具 举报

 楼主| wx_sE5YYXd0 发表于 2018-11-7 11:49:50 | 显示全部楼层
hostgator又回复我啦,说要我优化代码,还说vps没用,要我买专用主机 我可付不起啊,大家觉得该怎么办??

Greetings,

Thank you for your response. We strive to provide the best customer service and hosting experience to all our customers. We appreciate your business and value your loyalty.

Our team has made a temporary block on the account for excessive CPU usage from your PHP forum script. Looking at the issue, this is a problem that unfortunately is beyond our scope of support. However, I would be happy to help guide you in the correct direction or provide you with the resources that you need that will help you with what you are trying to accomplish.

We can not provide a step-by-step guide on how to optimize the script, however, in general, introducing new indexes, cleaning databases, optimizing existing code, upgrading to the latest versions and adding some sort of caching mechanism, where the script does not need to generate a new page with every request, helps to lower the over load that a script will cause. Likely the original author or support group of the software that you are using will be able to help you to understand how to add something of this nature.

Moving to a VPS server would not be beneficial as this environment would not resolve the issue. The same goes for a Dedicated server, as this may just allow more space for the processes to run, and exacerbate the issue. Moving to a VPS is not an upgrade however you can consider a Dedicated server with optimization to the forum pages and/or database. We can assist you in migrating to the new server.

The process for transferring content from one server to another involves a few standard steps. Moving a copy of the content of files or an archived and packaged backup of the content. Restoring and reconfiguring those files so they work as intended on the destination server. Test the new location based on IP or another option to view content without interrupting the normal traffic for the site. DNS changes can take a short while to propagate. You can check the DNS configuration here: http://intodns.com. This process can be easy for simple html files or a bit more complex depending on the needs of the site and related services.

Here is a helpful Knowledge Base article that explains more about our transfer policy: http://support.hostgator.com/articles/hosting-guide/website-transfers/hostgator-website-transfers

You will need to purchase the new server first. Once the payment is processed, the account is active and provisioned with cPanel, we can begin the migration. It is crucial to have updated software on the server not strictly due to future cPanel versions no longer supporting it, but to prevent potential security vulnerabilities. Let us know if there is anything else that we can assist you with at this time. Thank you very much! We look forward to hearing from you.
Best Regards,
回复

使用道具 举报

 楼主| wx_sE5YYXd0 发表于 2018-11-7 11:57:16 | 显示全部楼层
775331433 发表于 2018-11-7 09:24
你可以试下这个https://addon.dismall.com/?@jcrs_bot.plugin.80021

可以减少cpu消耗吗 我试试看哦!谢谢。 还有别的建议大家请和我讲
回复

使用道具 举报

 楼主| wx_sE5YYXd0 发表于 2018-11-7 11:59:28 | 显示全部楼层
crx349 发表于 2018-11-5 15:03
意思是让你换vps或云服务器哦
虚拟空间 一般超cpu就警告

不是警告的问题,他直接把我站废了,访问不了
回复

使用道具 举报

775331433 发表于 2018-11-7 12:19:50 | 显示全部楼层
wx_sE5YYXd0 发表于 2018-11-7 11:57
可以减少cpu消耗吗 我试试看哦!谢谢。 还有别的建议大家请和我讲

可以的,你先用下,有问题直接联系
回复

使用道具 举报

 楼主| wx_sE5YYXd0 发表于 2018-11-7 12:27:45 | 显示全部楼层
775331433 发表于 2018-11-7 12:19
可以的,你先用下,有问题直接联系

 装好之后启用就可以了对吧?不用设置什么对吧?

我启用后给他们回信了,看他们怎么回:


Dear Gabrielle and Adam,

As per my adviser, I have installed a plugin which prevents web crawlers from accessing my site's pages and using up CPU.

This site is just a pet project for me. It is not making me any money. And I can't afford a dedicated server for this.

Would you check my site again and enable it, please?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-26 15:24 , Processed in 0.024867 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表