Webmaster Forum  

Go Back   Webmaster Forum > Web Hosting Forum - Web Hosting - Web Host - Hosting - Managed Hosting - Shared Hosting > Site & Server Administration
User Name
Password
Register FAQ Members List Calendar Transactions Store Search Today's Posts Mark Forums Read


Bandwidth vs CPU usage

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2008, 13:18
puffin
Senior Member

puffin's Avatar

Join Date: Nov 2006
Posts: 778
Trader Rating: (0)
Points: 23 (Donate)
5 F$/Referral Refer Friends
puffin is on a distinguished road
Default Bandwidth vs CPU usage

I have seen people get their web hosting accounts suspended even when are in their bandwidth limit but because "High CPU usage". How does this might happen ?

.
puffin is offline
Reply With Quote
  #2  
Old 01-06-2008, 19:22
sunken
Senior Member

sunken's Avatar

Join Date: Dec 2004
Posts: 242
Trader Rating: (0)
Points: 0 (Donate)
5 F$/Referral Refer Friends
sunken is on a distinguished road
Default

Scripts that make a huge amount of requests to the MySQL server are right on the top of the list of causes. MySQL is very good at what it does, but it can get the CPU bogged down with large amounts of simultaneous requests, especially if those requests are multiple table selects or inserts in huge databases.

Bandwidth is not representive of CPU usage. A site with little MySQL interaction and straight HTML pages can be high in bandwidth (if it has pictures), but low in CPU usage. A site with high MySQL interaction and internal processing can be high in CPU, but if it outputs very little, like text, then it can be low bandwidth.
sunken is offline
Reply With Quote
  #3  
Old 01-06-2008, 19:26
ScriptMan
Member


Join Date: Feb 2007
Posts: 76
Trader Rating: (0)
Points: 45 (Donate)
5 F$/Referral Refer Friends
ScriptMan is on a distinguished road
Default

Assuming a legit host who was not looking for a reason to drop you, It is pretty easy to do. Some scripts are poorly written and throw a real load on the server.

One of the 4 things that people need to keep in mind when looking at cheap hosting are:
max disk space
max bandwidth
cpu time or %
max DB connections

All of these items are usually coved in the TOS/Use policies and are used by the "over-sellers" to get rid of people who are using anything above the desired amount.

To be fair, sometimes you might have a bad script that does overload the server. This can happen anywhere.
__________________
ScriptMan
ScriptMan is offline
Reply With Quote
  #4  
Old 01-07-2008, 01:09
puffin
Senior Member

puffin's Avatar

Join Date: Nov 2006
Posts: 778
Trader Rating: (0)
Points: 23 (Donate)
5 F$/Referral Refer Friends
puffin is on a distinguished road
Default

So lets say if there is a bad script or For some reason a script has started making a huge amount of requests to the MySQL server. How would you identify this as quick as possible ? or what are the things you can do to prevent this ?

.
puffin is offline
Reply With Quote
  #5  
Old 01-08-2008, 18:11
sunken
Senior Member

sunken's Avatar

Join Date: Dec 2004
Posts: 242
Trader Rating: (0)
Points: 0 (Donate)
5 F$/Referral Refer Friends
sunken is on a distinguished road
Default

Well first of all, look for reviews of scripts you use. People will usually say if the script is a resource hog or not before installing it.

Other than that, if you have cPanel, you may find this thread interesting:
http://forums.burst.net/archive/index.php/t-198.html

This explains how to get the CPU usage for your account with cPanel.

There isn't always a good solution to a bad script except to replace it with something else, though data isn't always easy to convert. I wish there was a simple answer, but it would depend on the script, etc.
sunken is offline
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do web host companies close accounts with high bandwidth usage? Maverick88 Web Hosting Forum 13 12-26-2007 14:58
CPU usage puffin Site & Server Administration 0 12-04-2007 14:25
PRIMARY VPS-15% off - free control panel - starts at $8.46/month! PrimaryVPS VPS Forum 0 06-01-2007 19:50
PRIMARY VPS-15% off - free control panel - starts at $8.46/month! PrimaryVPS Paid Web Hosting Offers And Requests 0 06-01-2007 19:49
check u r dsl speed gadabaya General Discussion 2 11-16-2006 12:59

Resources : | Advertise at FHF | itextLink.com| Reseller Hosting| TextDot| iNamePros| Any Webmaster| Web Host| Dep3|


All times are GMT -4. The time now is 07:43.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.