Zen Cart Logo
Forums / General Questions / Hosting suspended due to CPU usage, Question

Hosting suspended due to CPU usage, Question

Views: 1,702

Results 1 to 4 of 4
25 Mar 2014, 11:59 AM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Hosting suspended due to CPU usage, Question

I am looking into if there is something abnormal using my cPanel server CPU

I am just about to fix this bug: PHP Fatal error: Class 'productPricing' not found in /home/jbmminia/public_html/zencart151/includes/init_includes/init_currencies.php on line 47
But I don't think thats a problem.

I will be optimizing the site for CPU but wonder if there was something abnormal that may have caused this.

Letter from Hostgator:

HostGator:

Hello,

Your account has been abusing CPU resources for an extended period of time.
As a result all of your sites have been cached in order to ensure continued
performance stability of the server. While we do limit each account to no
more than 25% of a system's CPU in our terms of service, we do not actively
take actions against accounts until they greatly exceed that number, which
is what happened in this case.

Please take a moment to review this email in full as it contains important
information and resources to assist you in resolving this issue. Please note
that this permanent restriction requires you take further actions to gain
access to and resolve the issues on your account.

Please note your site(s) are still online in a cached form. However, any
further violations will result in your account being suspended

  • Important information on the caching for your account
    Your account will be cached for 12 hours, with the cache for your sites
    updating every 3 hours. This will allow your site to stay online for
    visitors while you correct the issues causing the problems described below.

Once your sites are fix and no longer causing service issues and remains
incident free for 12 hours the restrictions will be removed and your account
will function normally.

Many customers opt to cache certain parts of their websites to ensure
optimal performance for their sites. Below are links to optimizations guides
for popular CMS's.
http://support.hostgator.com/articles/specialized-help/technical/drupal/how-to-enable-caching-in-drupal
http://support.hostgator.com/articles/specialized-help/technical/wordpress/optimizing-wordpress
http://support.hostgator.com/articles/specialized-help/technical/joomla/optimizing-joomla
http://support.hostgator.com/articles/specialized-help/technical/magento/optimizing-magento
http://support.hostgator.com/articles/hosting-guide/publish-your-site/zencart/zencart-optimization-guide

CPU seconds used in the past hour: 4343.35999999999, 121% CPU

Tue Mar 25 04:01:07 CDT 2014
Running Processes:
jbmminia 14605 17.0 0.4 467788 78568 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 8.5 0.2 415752 42116 ? RN 04:00 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 9.1 0.2 405532 35248 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 9.2 0.2 406360 35984 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 7.8 0.1 400452 32024 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Running Queries:
*************************** 1. row ***************************
USER: jbmminia
DB: jbmminia_xxxxx
STATE:
TIME: 0
COMMAND: Sleep
INFO: NULL
*************************** 2. row ***************************
USER: jbmminia
DB: jbmminia_xxxxx
STATE:
TIME: 0
COMMAND: Sleep
INFO: NULL
*************************** 3. row ***************************
USER: jbmminia
DB: jbmminia_xxx
STATE:
TIME: 0
COMMAND: Sleep
INFO: NULL
*************************** 4. row ***************************
USER: jbmminia
DB: jbmminia_xxxxx
STATE:
TIME: 0
COMMAND: Sleep
INFO: NULL
*************************** 5. row ***************************
USER: jbmminia
DB: jbmminia_xx
STATE:
TIME: 0
COMMAND: Sleep
INFO: NULL

Open connections

Current Site Requests:
216.176.184.100 jbmminiatures.com
/index.php?main_page=shopping_cart&product_id=6176&zenid=5e
216.176.184.100 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.100 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.101 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.101 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.102 jbmminiatures.com
/index.php?main_page=redirect&action=banner&goto=14&zenid=d
216.176.184.102 jbmminiatures.com
/index.php?main_page=redirect&action=banner&goto=14&zenid=d
216.176.184.103 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.103 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.104 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.107 jbmminiatures.com
/index.php?main_page=redirect&action=banner&goto=14&zenid=d
216.176.184.108 jbmminiatures.com
/index.php?main_page=redirect&action=banner&goto=14&zenid=f
216.176.184.108 jbmminiatures.com
/index.php?main_page=redirect&action=banner&goto=14&zenid=f
216.176.184.108 jbmminiatures.com /robots.txt
216.176.184.109 jbmminiatures.com
/index.php?main_page=shopping_cart&action=remove_product&pr
216.176.184.109 jbmminiatures.com
/index.php?main_page=shopping_cart&product_id=6175&zenid=5e
216.176.184.109 jbmminiatures.com
/index.php?main_page=shopping_cart&product_id=6175&zenid=5e
216.176.184.99 jbmminiatures.com
/index.php?main_page=index&cPath=1362&sort=20a&page=11&acti
216.176.184.99 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5
216.176.184.99 jbmminiatures.com
/index.php?main_page=shopping_cart&sort=20a&page=11&zenid=5

Reference: ui
Server: merkur.websitewelcome.com
Srv. Type: cpanel
Created: Mon Nov 12 17:18:51 2012
Acct Type: Resold
Plan: vandierm_jbmminia_jbmminia
User: jbmminia
U. Domain: jbmminiatures.com
IP: 192.185.98.149 (dedicated)

Doc Root: /home/jbmminia/public_html

CPU Usage: 50.7% (warning)
Inodes: 111613 (warning)
LimitPHP: Limit file exists. (warning)

Snapshot 1
jbmminia 14605 16.7 0.4 469992 79624 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 9.0 0.2 423156 46868 ? RN 04:00 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 8.8 0.2 408652 37624 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 8.8 0.2 409944 38360 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 8.0 0.2 405408 35456 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Snapshot 2
jbmminia 14605 16.8 0.4 470264 79888 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 9.2 0.2 425264 48188 ? RN 04:00 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 9.0 0.2 409196 37888 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 9.0 0.2 410488 38624 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 8.1 0.2 405816 35720 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Snapshot 3
jbmminia 14605 16.8 0.4 470536 79888 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 9.7 0.3 429104 50564 ? RN 04:00 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 9.1 0.2 410188 38416 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 9.1 0.2 411032 38888 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 8.2 0.2 406496 35984 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Snapshot 4
jbmminia 14605 16.8 0.4 470536 80152 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 10.1 0.3 431684 52412 ? RN 04:00 0:01
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 9.1 0.2 410456 38416 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 9.2 0.2 411304 39152 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 8.2 0.2 406768 36248 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Snapshot 5
jbmminia 14605 16.2 0.4 471100 80416 ? RN 04:00 0:03
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 14942 9.4 0.3 432636 52940 ? RN 04:00 0:01
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15006 8.3 0.2 411680 39472 ? SN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15007 8.4 0.2 412388 39944 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php
jbmminia 15016 7.6 0.2 407716 37040 ? RN 04:01 0:00
/usr/bin/php /home/jbmminia/public_html/index.php

Current load: 04:01:09 up 155 days, 13:06, 0 users, load average: 0.07,
0.01, 0.00

25 Mar 2014, 5:11 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Hosting suspended due to CPU usage, Question

Treat it as though the site's been hacked until you've done a thorough inspection of everything to prove otherwise:
http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks

And, I'd make a point of downloading a complete copy of all files from your site ASAP ... both for backup purposes and to use in the inspection process.

26 Mar 2014, 12:04 AM
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Hosting suspended due to CPU usage, Question

Not the problem you are looking for but it probably should be looked at

you appear to be trying to use a PDF as an image

<div id="bannerSix" class="banners"><img src="images/small furniture catalog.pdf" alt="Download a Copy of our New 1:24 Scale Catalogue" title=" Download a Copy of our New 1:24 Scale Catalogue " width="140" height="114" /></div>
12 Nov 2014, 7:14 PM
#4
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Hosting suspended due to CPU usage, Question

I believe the problem turned out to be easy populate had an error and created thousands of duplicate sub categories, when a customer went to the parent or sub category having such large number of categories caused some kind of higher CPU usage. At lease when easy populate was used again it updated the categories correctly and our host said the CPU usage was fine.