In this article I'm going to touch on why excessive amounts of CPU processing especially related to image manipulation can be a bad thing on your account.

What is excessive CPU processing?

On a server the CPU or Central Processing Unit can be thought of much like the brain of the machine, almost any request the server has to deal with, is going to require time from the CPU to process that request.

The level of CPU processing for a website should be very minimal compared with local desktop CPU activities, and realizing the impact on the server's CPU your website could be having, can help prevent you from possibly running into an account suspension for having your account use up an excessive amount of CPU time.

As an example an average WordPress site with a few plugins enabled on it and no form of caching, will typically consume around 1 second of CPU time, that is, it requires the attention of the CPU for at least 1 second before it can spit back to the website visitor the full HTML code for their web-browser to display.

Most CPU activites that happen on the server will be in the range of fractions of a second of CPU time, to maybe at most 5 CPU seconds per execution. Where you can begin to run into problems is when you're doing more intensive CPU activities that typically would be ideal on a desktop CPU, but not a server CPU that is being shared by other users.

Image manipulation

One of the most common instances of excessive CPU processing would be from image manipulation. If you've ever loaded up PhotoShop or some other image software on your desktop PC, you might have noticed when you try to resize a large image, or run certain filters on an image it can take a long time to accomplish. All along you are probably doing this on a dedicated desktop PC that has probably 2 or more processors dedicated solely to your tasks with nothing else going on in the background.

On a server, especially if you're using shared hosting instead of a VPS or dedicated server, there are multiple CPU cores, but they are constantly being requested to do little spurts of work to fulfil all the various website requests from all the users on the server. When you all of the sudden queue up 50 large image manipulation tasks for the CPU to handle, this can throw a wrench in the server being able to keep up with all requests globally, not to mention it can eat up close to a minute of CPU time per image manipulation, which would equate roughly to the same as serving up a standard WordPress site to 60 unique visitors.

It's generally recommended when uploading images into an application that is going to resize or manipulate the image data on the server-side, that you first use a local desktop image application to optimize the images for the web prior to uploading them. This will allow you to upload more images, faster, and without as much risk to your account's resource usage becoming excessive.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!