Pages

Tuesday, October 30, 2012

how-to-avoid-high-cpu-usage-shared-hosting

Did you face this: Your website is using high CPU usage . Account Suspended - Upgrade to VPS?


WHY CPU USAGE IS IMPORTANT
High CPU usage can have your account suspended. You will no longer see your website on the internet even if you have paid all amount.
The website URL simply shows to everybody message:
"ACCOUNT SUSPENDED.
This account has been suspended."

CPU time is a finite resource shared by all websites hosted on a particular web server, if any one website uses the CPU excessively; other websites on the same server will be deprived the opportunity to serve their pages in a timely manner, and will often appear to be sluggish.


IMPORTANT
Whatever you do backup your site first.

HOW TO AVOID HIGH CPU USAGE
1.
Use plugin for cache. On wordpress 'W3 Total Cache' plugin is best and a must use plugin. See below article on how to configure W3 Total Cache plugin by Ajay Meher.
http://www.techiezone.net/tutorials/configure-w3-total-cache/
CDN - speedymirror
----

2.
Keep minimum pluggins. Lesser the better.
Upgrade plugins. Remove any unused web applications and/or plugins/add-ons that you have installed
See the list of not recommended plugins below and alternatives to those plugins.

3.
Optimize scripts databases. Jing Hong tells how to do that using mySQL queries.
See
http://www.allguru.net/database/8-useful-sql-to-clean-up-wordpress-database/
You can use PHP myAdmin. Select all mySQL database. On options click optimize.

4
Upgrade web platform. Example use updated version of wordpress or joomla.

5.
Use themes carefully. Wordpress Themes tht don't require SEO pluggin are
Genesis
Thesis
If there are graphics in your theme upload on blogspot or flickr and use from there.


WHAT EXACTLY IS CPU USAGE
CPU time (or CPU usage, processing time) is the amount of time for which a central processing unit (CPU) was used for processing instructions of a computer program, as opposed to, for example, waiting for input/output operations. [ 1 ]

High "resource usage" means CPU and memory usage, not disk space or bandwidth.

WHAT DOES (Central Processing Unit) CPU DO
The web server's CPU is used to obtain and serve your web pages to your visitors, whether these pages are static or dynamic is totally irrelevant. More CPU cycles or resources are used when your web pages are served dynamically from a database or script, since the database has to do some fair amount of processing to construct and serve these web pages to the visitors. It has to load the web template, obtain data for that particular page from the database, execute any plugins or modules that you have installed, and finally package the page to be served to your website visitors.

HOW TO FIND CAUSE OF HIGH CPU USAGE
1
BANDWIDTH STATS
The site high CPU using site generates the most traffic for the past day and for the current month.
2
TRAFFIC STATS
Look for the file(s) that have generated most traffic - look at the Top 10 apps, Total URLs by KBytes table. Look particularly for any PHP/CGI script files in this list that have generated unusually high amounts of traffic.

3
VISITOR STATS
look for the visitor/host that has generated most traffic this month. You will find the list under Top 10 of XX Total Sites by KBytes - look for any hosts that have generated unusually large amounts of traffic (when compared to others in the same period) - this will either be an IP address or a hostname of some sort, some domain.com


LIST OF WORDPRESS PLUGINS NOT RECOMMENDED
(Alternative plugin shownin brackets) [ 2 ]


1. All In One SEO (alternative WordPress SEO )


2. Broken Link Checker


3. Yet Another Related Posts Plugin (alternative Better Related Posts )


4. NextGen Gallery (alternative WordPress gallery shortcode and WP FancyBox)

5.
Tracking traffic plugins (better alternative jetpack/google analytics)





Sources- Thanks -
Copyright owners:

Thanks to Patricia B.

1.
https://secure.vexxhost.com/support/index.php?/Knowledgebase/Article/View/24/0/what-is-high-cpu-usage-and-how-can-i-reduce-my-usage/
Date published 2011
Retrieved October 30, 2012

2.
http://support.ecenica.com/wordpress/fix-high-cpu-load-wordpress/
Title
How to fix high-CPU load in WordPress


Date
Published: 27th March, 2012
Modified: 24th July, 2012
Retrieved 30 October, 2012
Article ID: 7599

3.
Thanks to Jing Hong.
Ask Jing Hong SOL queries that clean your data base.

http://www.allguru.net/database/8-useful-sql-to-clean-up-wordpress-database/
Retrieved October 30, 2012


4,
From phpMyAdmin select database my SQL options and click on optimize.
Iconcube.com
Retrieved October, 2012

5.
http://wordpress.org/support/topic/cpu-usage-limit-problem
Retrieved October 30, 2012


6.
Thanks to
Yann Stettler
www.cohprog.com
Received October, 2012


7.
Jijo Sunny
http://kisswebmaster.com/optimizing-wordpress/
Retrieved October 30, 2012

8.
Ajay Meher
http://www.techiezone.net/tutorials/configure-w3-total-cache/
CDN - speedymirror
Retrieved October 30, 2012



9.
http://webhostingw.com/unlimited-isnt-unlimited/
Retrieved October 30, 2012


By Ashok Koparday

Research, lot of study and personal experience has made these articles valuable. Before you click copy & paste please take a moment to thank the author.

The other reason for high CPU usage is old inefficient server,
[ 9 ] Review of 10 webhosts makes interesting reading. Don't be fooled by "unlimited" offers given at "cheap" price.

No comments:

SEXUAL HEALTH EDUCATION

SEXUAL HEALTH EDUCATION
Free Ask Sexologist