Webhost Suspended Service Because Of Cpu Usage

I am hosting with Hostgator currently, my goal is that this will end before the sun goes down. However, I need to find out what the problem is on my csCart and how to fix it. Below is what they told me in their email. Incidentally, I am running 2.2.5 and,





At the top of my store the following error is being displayed:




[quote]Strict Standards: Declaration of Templater::display() should be compatible with Smarty::display($resource_name, $cache_id = NULL, $compile_id = NULL) in /home/printedp/public_html/custom-cartoon-gifts/core/class.templater.php on line 24[/quote]



On the admin log in page this is being displayed:




[quote]

Strict Standards: Declaration of Templater::display() should be compatible with Smarty::display($resource_name, $cache_id = NULL, $compile_id = NULL) in /home/printedp/public_html/custom-cartoon-gifts/core/class.templater.php on line 24



Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/printedp/public_html/custom-cartoon-gifts/core/class.session.php on line 217[/quote]





My site is suspended so only I can view it with my IP.



This is the problem they said it had:


[quote]

Your account has been abusing CPU resources for an extended period of time and has been disabled in order to ensure continued performance stability of the account and 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 disable 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.


  • How can you resolve the issue?

    We have two solutions available. Moving the account to a dedicated server, which will allow far greater hardware resources or you may try following some of our tutorials for optimizing popular scripts. [url=“http://support.hostgator.com/articles/specialized-help/technical/optimize-cpu-resource-usage”]http://support.hostgator.com/articles/specialized-help/technical/optimize-cpu-resource-usage[/url]. If you feel your scripts have already been optimized, it may simply be time to consider the hardware upgrade.



    If you reply back to this email with your IP address ([url=“Web Hosting - Best Website Hosting | HostGator”]http://www.hostgator.com/ip.shtml[/url]) we will be more than happy to go ahead and enable HTTP access for you, allowing you to safely work on the script while minimizing the negative effects on the server and its other users.


  • How does a CPU issue occur?

    Many times popular scripts may perform inefficient tasks repeatedly leading to CPU abuse. Below please find helpful articles outlining resource restrictions set on HostGator accounts:

    [url=“Knowledge Base - Web Hosting Help & Support | Hostgator”]Knowledge Base - Web Hosting Help & Support | Hostgator

    [url=“Knowledge Base - Web Hosting Help & Support | Hostgator”]Knowledge Base - Web Hosting Help & Support | Hostgator



    CPU Seconds used in the past hour: 2644.55, 74% CPU

    Fri Jul 18 19:02:29 CDT 2014

    Running Processes:

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 46.4 0.2 327064 41648 ? RN 19:00 0:47 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Running Queries:

    *************************** 1. row ***************************

    USER: printedp_temp

    DB: printedp_temp

    STATE:

    TIME: 101

    COMMAND: Sleep

    INFO: NULL



    Open connections



    Current Site Requests:

    107.202.78.231 custom-cartoon-gifts.printedper /images/detailed/3/814-firetruck_A_Black_Mat13161594674e72f

    123.125.71.46 custom-cartoon-gifts.printedper /

    157.55.39.182 custom-cartoon-gifts.printedper /custom-cartoons/family-page-3.html?sort_by=product&sort_or

    157.55.39.182 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=body+shop&sort_by=popular

    157.55.39.182 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=licoln&sort_by=position&s

    157.55.39.251 custom-cartoon-gifts.printedper /family-dinner-couple.html

    157.55.39.251 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=IT&currency=USD&sort_by=b

    157.55.39.251 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=baton&currency=EUR&sort_b

    157.55.39.6 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=ballet&currency=USD&sort_

    157.55.39.6 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=band&sort_by=popularity&s

    157.55.39.6 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=band&sort_by=price&sort_o

    157.55.39.6 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=invitation&sort_by=popula

    157.55.39.68 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=band&page=1&currency=EUR&

    157.55.39.69 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=EMT&sort_by=popularity&so

    157.55.39.69 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=boss&currency=GBP&sort_by

    157.55.39.69 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=sports+team&page=1&curren

    186.226.208.246 custom-cartoon-gifts.printedper /js/editors/tinymce.editor.js

    186.226.208.246 custom-cartoon-gifts.printedper /lib/js/appear/jquery.appear-1.1.1.js

    186.226.208.246 custom-cartoon-gifts.printedper /lib/js/jqueryui/jquery-ui.custom.min.js

    186.226.208.246 custom-cartoon-gifts.printedper /skins/artificial_casting/customer/addons/discussion/styles

    186.226.208.246 custom-cartoon-gifts.printedper /skins/artificial_casting/customer/addons/hot_deals_block/s

    186.226.208.246 custom-cartoon-gifts.printedper /skins/artificial_casting/customer/addons/news_and_emails/s

    186.226.208.246 custom-cartoon-gifts.printedper /skins/artificial_casting/customer/dropdown.css

    186.226.208.246 printedperfection.com /

    186.226.208.246 printedperfection.com /BLUE/images_OCCUPATIONS/thumbs/057-hairdresser-female_4_Ke

    207.46.13.51 custom-cartoon-gifts.printedper /custom-cartoons/family-page-3.html?currency=EUR&sort_by=pr

    207.46.13.51 custom-cartoon-gifts.printedper /custom-cartoons/family-page-3.html?currency=EUR&sort_by=pr

    207.46.13.51 custom-cartoon-gifts.printedper /custom-cartoons/occupations-page-5.html?sort_by=popularity

    207.46.13.51 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=baseball&sort_by=position

    207.46.13.51 custom-cartoon-gifts.printedper /index.php?dispatch=tags.view&tag=farmer&sort_by=price&sort

    207.46.13.51 custom-cartoon-gifts.printedper /party-female.html?currency=USD

    207.46.13.51 custom-cartoon-gifts.printedper /snowman-family-couple-1-boy-2-girls.html

    217.69.133.11 custom-cartoon-gifts.printedper /dolphin.html

    217.69.133.11 custom-cartoon-gifts.printedper /dolphin.html

    65.55.212.64 custom-cartoon-gifts.printedper /chiropractor-female.html

    66.249.74.229 custom-cartoon-gifts.printedper /baby-shower.html

    66.249.74.229 custom-cartoon-gifts.printedper /baby-shower.html

    66.249.74.229 custom-cartoon-gifts.printedper /bbq-3.html

    66.249.74.229 custom-cartoon-gifts.printedper /horse.html

    66.249.74.67 printedperfection.com /working/cartoon-caricatures-detailed/img/items/364-band-dr

    98.183.198.18 custom-cartoon-gifts.printedper /images/detailed/3/866-german-shepard.jpg



    Reference: ui

    Server: rotrax.websitewelcome.com

    Srv. Type: cpanel

    Created: Tue Jul 19 17:26:32 2011

    Acct Type: Resold

    Plan: scrapbo1_Custom

    User: printedp

    U. Domain: printedperfection.com

    Owner: scrapbo1

    O. Domain: site-creators.com

    Email: contact@scrapbooksuppliesdirect.com (reseller)

    IP: 192.185.147.84 (dedicated)



    Doc Root: /home/printedp/public_html



    CPU Usage: 46.6% (warning)

    Diskspace: 28639 MiB (warning)

    Inodes: 165674 (warning)

    LimitPHP: Limit file exists. (warning)





    Snapshot 1

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 46.8 0.2 327064 41648 ? RN 19:00 0:48 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Snapshot 2

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 46.9 0.2 327064 41648 ? RN 19:00 0:48 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Snapshot 3

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 46.9 0.2 327064 41648 ? RN 19:00 0:48 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Snapshot 4

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 47.0 0.2 327064 41648 ? RN 19:00 0:48 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Snapshot 5

    printedp 6514 0.0 0.0 23344 2096 ? S 18:57 0:00 dovecot/imap [contact@printedperfection.com 70.197.171.98 IDLE]

    printedp 12567 47.1 0.2 327064 41648 ? RN 19:00 0:49 /opt/php54/bin/php-cgi /home/printedp/public_html/custom-cartoon-gifts/index.php



    Current load: 19:02:30 up 253 days, 12:04, 0 users, load average: 0.09, 0.02, 0.01



    [/quote]

Most likely your host has upgraded PHP to 5.4. If so, tell them you need to go back to 5.3.

@tool, probably they only way they will be able to go back to 5.2 or 5.3 is to switch to a vps. Shared hosts take the “common denonminator” approach. But they may be able to move the site to a host that is still running 5.2 or 5.3.

If they are a decent host they will have the option to use different php versions whereas the following will need to be added to .htaccess.


AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

Apache/PHP looses its effeciency if each site on a shared host is running in a different context. Most hosts won't sacrifice the number of sites/server to support running multiple instances of PHP. But this is probably host dependent.



The main point is that the merchant should work with their hosting company to let them provide a configuration that will meet the needs of their business.