HostGator.com » Support Portal

CPU Resource Usage

Shared Servers

HostGator allows a maximum of 25% CPU usage limit. You may exceed this limit for no longer than 90 seconds.

It is unlikely that you hit the 25% CPU usage. Unless your site is script intensive and requires more processing.

Here are some valuable tricks to lessen your CPU usage.

  • Reduce your number of banners and ads from other sites.
  • Avoid using too many scripts, and do not force html to handle server-side code (like php and shtml).
  • Avoid using https protocol as much as possible; encrypting and decrypting communications is noticeably more CPU-intensive than unencrypted communications.

Flash, video, audio, and image files are downloaded to the browser. This uses bandwidth only.

Reseller Servers

Reseller servers have the same limits as Shared servers, however, the limit is per cPanel, not for the entire reseller package. 

However, if you have multiple cPanel accounts contributing to a server problem, we may suspend any of them.

VPS Servers

You are allowed to use 100% of your CPU resources. However, this is only a portion of the server's total CPU resources. If you are looking for more CPU resources than a Shared Server, you will NOT want to pick VPS; instead, you should choose a Dedicated Server.

Dedicated Servers

You are allowed to use 100% of the server's CPU resources.

A good trick for VPS and Dedicated is to turn off the webstat programs (AWstat) that comes with your cPanel. Note that AWstat and other tracking tools use CPU and MySQL connections. By turning this off, you reduce your CPU usage.


Article Comments

Matthew
does this apply to the reseller hosting as well ?

It would be good to know if each individual account is on the CPU usage or my whole reseller account.

HostGator
The limit is per cPanel, not per reseller account.

However, if you have multiple cPanel accounts contributing to a server problem, we may suspend any of them.

Jackson
How can i see CPU usage for per cpanel account in reseller account?

HostGator
You cannot view your user's total CPU usage, but you can use jailed shell to get a good idea.

Note: This requires you to have jailed shell active for the user in question.

In 'top' you can view the load and CPU usage for the total server, and then under processes you can see the CPU usage for each process belonging to your username. You can add all those up and get an estimate.

Nell
Your terms of service state "Avoid using too many scripts, and do not force html to handle server-side code (like php and shtml)." Can you provide an example of what is "too many scripts"?

If I open an account, I will be working with AJAX calls and jQuery. I will also be hitting a database for some dynamic content, possibly relying on simpleXML for some content, and possibly building some on-the-fly PDFs. Does this use mean my account would be subject to termination if it is determined I'm using "too many scripts"?

Just need some clarification before opening my account. Thanks!

HostGator
You are safe to use as many client-side scripts as you want.

Javascript, jQuery, XML, PDF's - all of these are handled by the browser, and not processed by your server.

PHP, Perl, Python, CGI - all of these are processed by the server first, and can contribute to using the resources in question.

Ajax uses both client-side and server-side scripting, so it can be a contributing factor to excessive CPU resource usage.

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment