Jump to content

help! This Account Has Exceeded Its CPU Quota!


graphicguy

Recommended Posts

My account constantly gets suspended and its because I use to many resources on the server and the problem comes from using get. What can I use to use less resources?

HTTP Request: asdf.com : GET /page/count/633/ HTTP/1.1

This is the error I am getting!

[quote]This Account Has Exceeded Its CPU Quota 

Please contact this site's webmaster.

Wait a few minutes and use your browser's "Back" button or click here to try again.




--------------------------------------------------------------------------------
If you are the webmaster, your account may have exceeded for one or more of the following reasons:
Your site has used more than 20% of the cpu.
Your account has too many processes running at the same time.
Your site was consuming too many resources. This happens on occassion to very busy sites that have inefficient scripts running.
[/quote]
Link to comment
Share on other sites

Hey, I have tons of bandwith its using to many cpu resources for example this is one of them,

Sat Oct 28 06:21:15 2006: used 3.59 seconds of cpu time for HTTP Request: www.asdf.com : GET /page/count/733/ HTTP/1.0

I used $_GET alot for example,

$update = mysql_query("update users set date = CURDATE( ) where id = '$_GET[id]'");

Link to comment
Share on other sites

GET shouldnt be eating up your CPU. It is your PHP script that is eating up your RAM/CPU. If you are using mysql queries then that is most probably the culprit. Try and optimize your SQL Queries/database structure

It doesnt matter how many GETs you use or what ever.
Link to comment
Share on other sites

slightly off topic: you shouldn't be putting your $_GET variables directly into your queries like that.  This doesn't have anything to do with resources; it's a security issue.  Doing that makes your site ripe for sql injection.

Here's a thought: maybe someone has figured out this, and they are exploiting you. Have you checked any of your logs? checked your database?
Link to comment
Share on other sites

[quote author=wildteen88 link=topic=113009.msg459169#msg459169 date=1162058093]
GET shouldnt be eating up your CPU. It is your PHP script that is eating up your RAM/CPU. If you are using mysql queries then that is most probably the culprit. Try and optimize your SQL Queries/database structure

It doesnt matter how many GETs you use or what ever.
[/quote]

Hey, How would I go about optimizing them to make them better?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.