佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 886|回复: 2

大家看看这封来自web hosting company's 信

[复制链接]
发表于 8-3-2007 05:25 PM | 显示全部楼层 |阅读模式
他们说我的coding导致cpu usage过高。。

We have found your domain abc.com MySQL process of database"database_abc" was abusing our server CPU resources. Your hostingaccount is hosted in shared environment, hence corrective measure hasbeen taken to suspend your domain to prevent overloading our server andcause service interruption to other share hosting users.

Attached are the screenshots of the server CPU usage which caused byhigh CPU consumption on MySQL query process from your database. Base onthe monitoring, only MySQL process from your domain was running duringthat period. After suspending your domain, the CPU process recoveredinstantly to normal condition.

As stated in our AUP policy at https://exabytes.com.my/about/legal/aup/#H-resource,we will provide options for reducing the usage or try our best todisable the certain process/service without affecting the operation ofwhole hosting account, however if the situation is severe, we maysuspend the account or process immediately to bring performance of theserver back to an acceptable level.

Your Shared hosting plan is limited to 100MHz usage and the server CPUis 3.2 GHz. As the percentage shown in screenshot, apparently yourhosting was consumed much more than that. The situation has affectedother share hosting accounts and even the whole server processes, thuswe have to suspend your account as immediate corrective measure to thecritical situation.

For your information, we have unsuspended the hosting account afterchanging the MySQL process time out to 30 seconds at server globalsettings. For time being, we will keep monitoring the server. If wefound that your domain overload the server again, we have to suspendyour account until further notice.

As for mutual benefits and permanent solution to this issue, pleasefurther check on your MySQL query coding to rectify and prevent theoverload issue happen again.
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 8-3-2007 07:57 PM | 显示全部楼层
请问我要如何避免我的coding导致cpu的usage过高呢?
回复

使用道具 举报

发表于 8-3-2007 09:48 PM | 显示全部楼层
尽量不要在FOR LOOP里执行QUERY 资料太大的TABLE,或复杂的SQL STATEMENT
回复

使用道具 举报

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

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 27-8-2025 05:02 PM , Processed in 0.123174 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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