September 21, 2017

How To Solve Siteground CPU limit Account suspended


Are you searching for siteground cpu limit, siteground account executions and this account has been suspended means. This post explains how to overcome account suspended website, this account has been suspended godaddy, exceeded siteground cpu usage, Exceeded Executions, Exceeded limits on executions, the web service to this account has been limited temporarily siteground and this account has been suspended wordpress problems.

SiteGround usually send out a message to users mentioning that their Domain Exceeded Program Executions Allowed Per Day. This message "the web service to this account has been limited temporarily siteground" does not say what causes it and how to resolve it. This is basically a warning and a saying: Go Figure. So I thought why don’t we figure it out.

In this post, we will try to find out what are the possible causes of high number of executions and how to optimize them. Here is a detailed online tutorial on how to identify causes of exceeded program and script executions and optimize website to reduce the number of script executions.

What is the web service to this account has been limited temporarily siteground means

 After a point of time your traffic or a post will go viral outgrowing the fixed number of visitors and thereby increasing php script and program executions in the site. They have fixed a certain number of executions per day and if it outgrow that the website will be suspended for that calendar day making it inaccessible for visitors to access your site.

SiteGround Mail on Exceeded Limits

the web service to this account has been limited temporarily siteground

Dear User, 

We would like to inform you that your account has reached 80% the daily quota of 10000 program and script executions. Please note that once you hit 100% of the allowed daily executions, your web service will be limited for the calendar day. The web service limit means you might be having problems accessing your website.

How to lower resource usage
For your convenience, we have opened a report on the daily number of program executions in your User area, from where you can navigate to optimize your resource usage:

https://ua.siteground.com/usagereports.htm

Consider upgrade

If your website will require more server resources on a regular basis, please consider upgrading to one of our higher plans.

Thank you in advance for your understanding and cooperation!

Best regards,

The SiteGround Team

Checking Stats Reports in CPanel For siteground account executions

As the mail mentions, go to https://ua.siteground.com/usagereports.htm.

You can see a message “See how your accounts consume server resources such as CPU and if they come close to reaching the usage quotas for number of inodes, number of executions, number of emails/hour, or other.”

Click View and find out the usage warning that occurred previously.

Limitation of SiteGround Hosting Plan

This is one of the major issue in SiteGround shared hosting plan. The removal limit will be extended temporarily when you ask siteground team. But this is done with a warning.

The customer has requested limit removal and full service is now restored.

Please note that a repetitive overage of the allowed resources within the period will result in account suspension.

Many bloggers such as shoutmeloud has raised this issue of exceeded script executions and high cpu usage and stopped giving recommendations in using Siteground. But this issue still continues and some users also get message such as the web service to this account has been limited temporarily in siteground. Now the question is that how to figure out what is causing these errors. Currently SiteGround offers Nginx to speed up delivery of static content, teamed up with CloudFare to provide free CDN [content delivery network] and have SuperCacher [for GoGeek and GrowBig Plans].

To know how to fix executions, lets understand what is an execution.

What is an Execution

As per SiteGround, an execution is a simple example of an execution is when a visitor opens your website and your index PHP file is loaded. Executions are counted for the following scripting languages – PHP, Perl, Python, Ruby, etc.

Now lets us check their hosting plans.

SiteGround-hosting plans-visits monthly

So if you opt for a StartUp plan thinking that you will be getting lesser than 10K visitors a month. You are wrong. The do not count the number of visitors but the number of CPU executions. The daily quota script executions for StartUp Plan is 10000. This means if your number of visitors is lesser than 1000 a day but website is exceeding allowed CPU usage which is more than 10000 executions, the website may get suspended.

How To Solve Exceeding Program and Script Executions,  Siteground CPU limit Account suspended in Wordpress

Siteground CPU limit Account suspended in Wordpress


There are a couple of ways to solve this issue. You may need to do all these sometimes to lessen the number of Exceeding Program and Script Executions per day. We will do the following to optimize your website.

  1. Block unknown bots
  2. Reduce WordPress script executions
  3. Optimize Apache handles requests
  4. Leverage browser cache
  5. Enable gZIP compression
  6. Remove RSS feeds Meta Widget
  7. Remove Archive Widget
  8. Logout from WordPress Admin Dashboard
  9. Add recaptcha plugin
  10. Use the SuperCacher
  11. Smush images
  12. Block Unknown Bots

How To find out Details on Exceeded Script Executions Per Day in Your Domain

Using AW Stats

Go to CPanel > AWstats > Open both domain and domain (SSL). In the summary section, you can see number of visitors to your site and number of hits.

Pages-URL (Top 25)

Find out which pages is viewed more times. For many websites, the most viewed pages will be;

/wp-admin/admin-ajax.php
/wp-cron.php
/wp-json/jetpack/v4/jitm

Mostly the pages will be from WordPress which need to be optimized.

Robots/Spiders visitors (Top 25): Check for high number of executions

You can see a number of unknown bots in the list.

Unknown robot (identified by ‘bot’ followed by a space or one of the following characters _+:,.;/\-)
Unknown robot (identified by ‘spider’)
Unknown robot (identified by ‘crawl’)
Unknown robot (identified by empty user agent string)
Unknown robot (identified by hit on ‘robots.txt’)
Unknown robot (identified by ‘robot’)
These are major reasons on causing high number executions.

Hosts (Top 25): Check For knowing account executions

You can see a number of IP addresses in the list. Find out IP addresses that has high number of Hits and check them in whatismyipaddress.com. If these IP address are appears to be from Spam sites, block them using IP Ban plugin. Know more blocking IP address here.

Comments sections To Block bots

Many spam bost try to access comment section of the website and create high number of executions. I deleted by comment section majorly because of this. You can add CAPTCHA using Google Captcha (reCAPTCHA) plugin.

Using Account Stats To Know Why Siteground Account suspended

Go to CPanel > Account Stats > Top 10 Executed Scripts

The table lists the number of executions from the beginning of the current month for shipmethis.com.

Executed Scripts Number of executions
/home/shipmeth/public_html/index.php 34 438
/home/shipmeth/public_html/wp-admin/admin-ajax.php 4 337
/home/shipmeth/public_html/wp-cron.php 1 733
/home/shipmeth/public_html/wp-admin/admin.php 486
/home/shipmeth/public_html/wp-admin/plugins.php 265
/home/shipmeth/public_html/wp-admin/load-scripts.php 257
/home/shipmeth/public_html/wp-admin/post.php 196
/home/shipmeth/public_html/wp-admin/edit.php 180
/home/shipmeth/public_html/xmlrpc.php 142
/home/shipmeth/public_html/wp-admin/options-general.php 88

This the executions that I was talking earlier. If you decrease these script executions, you will not exceed cpu usage.

Here you can three major scripts have high number of executions.

/home/shipmeth/public_html/index.php

/home/shipmeth/public_html/wp-admin/admin-ajax.php

/home/shipmeth/public_html/wp-cron.php1 733

You need to add a rule in hta access file to block them from accessing your website. Ask siteground team to add a rule in hta access file.

Reduce WordPress script executions

Inside Account stats, you can see account executions and CPU usage.

Account Executions – those statistics will show you which scripts are used the most in your account. You can use it to identify plugins and extensions that cause load to your site. Even Google's Crawl Bot can crawl your website too much which can generate the CPU usage.

CPU Time Used – this stat will show you the CPU seconds your scripts have used this week and the last 24 hours.

Control the WordPress heartbeat

WordPress To Solve Problems of siteground cpu limit WordPress heartbeat


To reduce script executions on admin-ajax.php, install a Heartbeat Control plugin that allows you to Completely controls the WordPress heartbeat. This plugin stops the POST request and reduce the number of executions.

Plugins > Search for Heartbeat Control > Install the plugin and select Activate.

Settings > Heartbeat Control configuration

Control heartbeat locations: Disable everywhere

Override heartbeat frequency: 60 Seconds

Save changes.

You can disable it, by going to the functions.php file of your theme and paste these lines right after the opening <?php tag:

add_action( ‘init’, ‘stop_heartbeat’, 1 );
function stop_heartbeat() {
wp_deregister_script(‘heartbeat’);
}

If you are getting any errors such as "Getting Fatal error: Cannot redeclare stop_heartbeat() (previously declared in /home/shipmeth/public_html/wp-content/plugins/heartbeat-control/heartbeat-control-actions.php:11) in /home/shipmeth/public_html/wp-content/themes/tiny-hestia/functions.php on line 4", Then contact the hosting provider to replace that file.

Stop Cronjob in WordPress To Solve Problems of siteground cpu limit

A Cron job is a scheduled task that you wish to be performed at certain period of time or date. To reduce script executions on /wp-cron.php, you need to disable /wp-cron.php service in WordPress. You should be very careful with this if you do not have experience. Better to ask siteground team to
do it for you.

You do not need to add Cron Jobs via CPanel unless requires. If you wish to add a cron you can always do it. You can add any custom made Cron jobs you find useful for your website. You can install a CronJob Plugin to wordpress website.

Optimize Apache handles requests To Solve Problem of Exceeded Script Executions on SiteGround

Apache handlers control how the Apache web server software manages certain file types and extensions for your site. Apache’s configuration can handle CGI scripts and server-parsed files. Optimize the performance of your website by tweaking the way Apache handles requests. You can compress Content by optimizing Apache requests.

Handler            Extension(s)

application/x-httpd-php56 .php .php5 .php4 .php3 .php2
cgi-script .cgi .pl .plx .ppl .perl
server-parsed .shtml

Apache version 2.0 and later allows you to compress content before you send it to the visitor’s browser. The types of content that you can compress are specified by MIME type. This feature requires Apache’s mod_deflate module to function correctly.

Go to CPanel > Optimize website > Select Compress All Content > Update Settings.

Leverage Browser Caching for Images, CSS and JS To Reduce cpu usage

Leverage Browser Caching to reduce CPU resource usage How to reduce the number of executions of your site


Browser caching enables webmasters to tell till how long they have to keep data on images, CSS and JS locally. By leveraging browser cache, you can generate make visitor’s browsers to load less data. This will improve page speed of your website and reduce program and script executions.

You need to add the following rule in hta access file. In case, you do not have experience in such things, contact SiteGround team via chat and ask them to add browser caching in your site.

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/javascript “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 2 days”
</IfModule>
## EXPIRES CACHING ##


Enable gZIP compression To Reduce Exceeded Script Executions on SiteGround

Gzip compression allow you to compress the requested pages and deliver webpages with lesser size. gZip compression can be added very easily to your website. You need to add the following rule in hta access file. Request Siteground team to add it for you.

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

Remove RSS feeds Meta Widget from wordpress website

As per SiteGround, fetching RSS feeds from remote servers will generate high number of CPU Usage. It is better to remove the RSS Meta widget from your site.

Appearance > Widgets > Remove Meta [Login, RSS, & WordPress.org links]

Remove Archive Widget from wordpress website

If you have migrated from blogspot to WordPress, or http to https, many posts will appear as http in archives thereby having multiple 301 redirects. It is better to remove archives from blog.

Appearance > Widgets > Remove Archives [A monthly archive of your site’s Posts.]

Logout from WordPress Admin Dashboard

High cpu usage can be reduced if you logout from WordPress Dashboard when not using. This will also increase security and save CPU resources.

Add Google ReCaptcha Plugin To block bots

Plugins > Google Captcha > Install and Activate > Authentication > Registration [To Create a public and private key] > Add Public Key and Private Key in respective columns >  Save Changes.

Use the SuperCacher to overcome account suspended website

SuperCacher to solve Biggest Limitation of SiteGround Shared Hosting in wordpress


SuperCacher is available for GrowBig and GoGeek plans. For StartUp plan, you can use the static cache service under SuperCache. You can activate supercacher to handle executions generated by legitimate high traffic using Dynamic Cache Option.

Static cache service For StartUp For less account executions

The Static Cache option caches all static content on your account that includes images, CSS files, javascript, flash, and more. Once enabled, all requests of future visitors to your pages will be answered from the cached content and not directly from the server thereby reducing Exceeded Script Executions on SiteGround.

Activate Google Page Speed, Dynamic Level Cache, Memcached and HHVM For GrowBig and GoGeek plans.

Install SuperCache plugin after activating the SuperCache service in CPanel.

Plugins > SG Optimizer > Install and Activate.

Add CloudFare CDN To wordpress Siteground

CloudFare is a content delivery network that provide free and paid plans to deliver your content seamlessly fast and free SSL for custom domains.

CPanel > CloudFare > Activate For Free

You can contact Siteground team to activate it for yourself in case you are find it hard.

How to Activate CloudFare in CPanel Siteground For wordpress




Setup CloudFare CDN To Decrease account executions wordpress




Smush Your Images to reduce account executions

Smushing your images will save server space as well as reduce cpu usage. You can use WP Smush to reduce the size of images.

Plugins > Smush Image Compression and Optimization > Install > Activate > Bulk Smush > Keep clicking the button to completely smuch all images and keep the page open for the process to complete.

Block Unknown Bots To Reduce siteground cpu limit

To block unknown bots especially Unknown robot (identified by empty user agent string), you need to add rules in hta access. Bots will have a specified user agent like User-agent: Googlebot and if that is empty, you better block it.

You can ask Siteground to add them for you.

RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule ^(.*)$ - [F,L]

If nothing works and still you are getting, the web service to this account has been limited temporarily message, I recommend to change the theme. Get a paid theme from Genesis or Themeforest. Ensure the theme is WordPress Blog friendly and not a theme for e commerce or other type of websites.

Some themes are very resource intensive which makes it execute high number of executions resulting in website suspension. So changing the theme can ensure less number of executions and less CPU usage.

Complete each step and wait for changes for the next day. It may take 24 hours to see the changes in siteground usage limit and execution limit. I cannot tell you which step will work for your WordPress website without checking it. Try each one and go the next one if no changes are there.

Kindly spend 5 seconds to share this post



Search Here

Whats Hot

About Author