diy niche building toolsrankspanker serviceniche basic

What have I done?

My blog is down and I don’t know why or what to do.

First, and foremost, thank you, Mark, for allowing me to post on your blog about this.

Some of you may have noticed that my blog, www.nichestorestrategies.com, is currently down. HostGator oh, so kindly blocked the database on this site, without any warning. The email I received from them said,

This message is to advise you of a temporary block placed on your database. The account/database referenced above was found to be consuming an inordinate amount of processor time, to the point of degrading overall system performance. 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.


Resolving this situation may be as simple as adding additional indexes to your database, optimizing the queries used, or something equally easy. If not, it may simply be a matter of moving this database to dedicated services, as it may have outgrown a shared environment.

If you believe you have a solution to this overuse, we are happy to discuss the situation with you and possibly reinstate the database on the server. Otherwise, we will be happy to assist you with the upgrade process if a dedicated server is the most appropriate solution. Thank you, and we look forward to hearing from you shortly.

~~~

Excessive MySQL activity is caused by (a) a long-running process that locks a table, causing other queries to back up, (b) a query that is not optimized ][example: select all from ... and involving a large or complex query], (c) huge table copies/maintenance during peak hours.


NOTE:, the following are just possible fixes or suggestions, and are not endorsed or supported by HostGator. They are included in the hope that they may apply to your situation, and/or help you reduce the amount of resources your SQL queries consume. As always, it’s best to backup any data before making any changes or adjustments.

First and foremost, you may need to optimize your tables. The frequency depends on the size and usage of the database, but most databases would benefit from doing something like this on a yearly basis: a) Enter your phpMyAdmin/MySQL control panel. Click on the database (not the table, the database name), and on the right hand column your tables should be listed. Scroll down till you see the .Check all. link. Click on that link, make sure all database tables are checked and then from the dropdown next to it, and carefully select .Optimize table..

Additionally, adding indexes to your table(s) may improve performance. If you’re not sure what you’re doing, it’s best not to modify any table; caution is recommended. There are various articles (http://www.whenpenguinsattack.com/2006/03/11/optimizing-mysql-tables/).

It may be best to google for something like [Your Software Name] MySQL indexes for suggestions.

WordPress Users: (http://wordpress.org/): It is important to keep up to date with this software; vulnerabilities have been found in past versions. Regardless, installing the WordPress Cache plugin can greatly reduce resource usage and improve performance (http://wordpress.org/extend/plugins/wp-cache/). If you’re not using the current version of WordPress, keep in mind that v2.1+ is much faster than older versions.

749151 | xxxxxxxxxx | localhost | xxxxxxxxxxx | Query | 0 | Sending data | SELECT * FROM wp_statpress LIMIT 146400, 100 |

| 750375 | root | localhost | | Query | 0 | | show processlist

My first thought was, “Huh?” I truly didn’t know what this meant or what I should do. After giving this some thought I remembered that I had setup a cron job and set it to run every 15 minutes. I promptly deleted the cron job and told HostGator what I had done. I also said that I would install the WP-Cache plugin as soon as I had access to the site. Apparently this wasn’t the problem or resolution.

HostGator responded with:

It was actually caused by MySQL including the line that we previously sent to you:

749151 | xxxxxxxxx | localhost | xxxxxxxxx| Query | 0 | Sending data | SELECT * FROM wp_statpress LIMIT 146400, 100 || 750375 | root | localhost | | Query | 0 | | show processlist

I responded by saying I’d be happy to try and fix the issue (not that I know how). I also asked why I wasn’t warned of the problem before my database was blocked and my site disabled (note this question does not have an answer). HostGator responded with:

These databases where disabled to prevent further problems from them. We can enable them locked to your IP so you can work to reduce the problems with them.

www.hostgator.com/ip.html for your current IP.

I then said, again, that I’d be happy to try and fix the issue but that I didn’t know what to do. I again asked why I wasn’t warned of the problem before my database was blocked and my site disabled (note this question STILL does not have an answer). HostGator responded:

“You need to rewrite your MySQL queries but how to do that or how they should be rewritten is beyond our scope of support.”

So, here I am, with no working site, no way to access they database they want me to fix, and no idea what to do. I am frustrated that they did this without warning me, and now won’t respond to why they did this without warning me. I’m confused because I have no idea what the heck the problem is or how to fix it. I Googled ‘how to rewrite MySQL queries’ but didn’t come up with anything that made sense to me.

My HostGator hosting plan is the Baby Croc.

Do any of you helpful readers have any idea what I did, or how I can fix it? If so, I would be very grateful for any help you can provide.

And, again, my appreciation goes out to Mark for giving me space on his blog to help me resolve this.

Oh, one last thing. I do have another hosting account I could move the database to, and I do have a slightly outdated backup of the database. I can, eventually, try to do move it to the other host, but the backup I have is from 7/14/08 so many comments and/or posts will be missing (shame on me for not having a current backup!) so I’d rather resolve it with HostGator.

Rochelle

Previously Published Articles You May Like to Read:


Rate This Post

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

18 Comments »

  • Mark said:

    Rochelle –

    Sorry for the blog issues – I have has similar issues and now I just use Google Analytics, along with WPStats (From their server)

    If you can get in… shut off the WP_statpress plugin.

    If you cannot get in, ask HG to delete the plugin for you.

    Mark

  • Rochelle (author) said:

    Curious. I don’t have that plugin, but I used my FTP client to be sure. When I navigated to my blog site I found all my files gone and a TON of core files instead.

    Rochelle

  • Manuel Merz said:

    Yes looks definately like the statpress plugin is causing high querie counts. Did you tried the live support as well Rochelle?

  • Rochelle (author) said:

    @Manuel,

    No, I haven’t had an opportunity to devote my full attention to that. I’ve been dealing with other things (you know, life) and have been trying to resolve this via email since I haven’t had a chance to give 20-30 minutes to it. Even now I can’t because I’m also giving my girls a bath and don’t want to leave them to turn into prunes while I try to deal with this, since I don’t know how long it will take. Then I need to make dinner, finish with the laundry, and so on and so on.

    But, now that I know where the problem is I’ve emailed HG and asked them to remove it.

    Rochelle

  • Dan said:

    Rochelle,
    Bummer about your site, i hope you can find a solution to this, HG is really vague when it comes to answers sometimes, but I still use them.

    The one thing that I have been thinking about is what Vic over at blogger unleashed has said, he mentioned that serious BANS users with an excess of 50+ sites using addon doomains should have a reseller account due to a lask of resources that could occur, not bandwidth or drive space but actual resources that can run low when multiple users access all of your sites. I really still don’t know what this means even though I have asked HG a few times about this, there typical response is that I would be fine.

    There was one of Marks early videos that mentioned a baby croc account would be just fine for up to about 40-50 sites/addon domains. I have about 80 and so I upgraded to the SWAMP account with more space and bandwidth. Vic still recommends havig a reseller account due to resources, does anyone know what this means?

    Good Luck Rochelle!

  • Emma said:

    Fixing this is beyond my scope. But upgrading to a reseller account would be an easy, yet more expensive solution. Of course then you would probably want to put your add on domains on individual accounts which would create a lot more work, but probably be better in the long run. Good Luck!

  • Gerry said:

    Rochelle,

    There is a thread over at the BANS forum that I happened across discussing pro’s and con’s of the reseller account and some other HG topics. The thread is:
    http://www.buildanichestore.com/members/viewtopic.php?t=17432&postdays=0&postorder=asc&highlight=reseller&start=0

    There is a member there “rootservices” who appears to be a HG employee and seems knowledgeable, and may be a resource for you on the problem. I think he is level 1 support.

    Good luck!!

    Gerry

  • Rochelle (author) said:

    The crisis is over. I bit the bullet and used HostGator’s chat. I ran back and forth between my computer room and kitchen, but the lulls between comments allowed me to continue making dinner.

    I must say, their chat was MUCH more helpful than the email techs. I think I understand what happened, and I now know how to resolve this, should it happen again.

    I’ll write a post for my blog and explain what I did and how you can resolve this, should it happen to you.

    I seriously considered upgrading to a reseller’s account, but the cost held me back. I probably will, eventually, but now that I know what happened I think I can hold off on that decision a little longer.

    Thanks to all for suggestions and support.

    Rochelle

  • Chuck said:

    Rochelle,

    Glad it worked out for ya!

    I must say that I have never been anything but impressed with HG chat support. I hope you rated them a “10″!

    Chuck

  • Rochelle (author) said:

    @Chuck,

    Yes, I rated the chat rep a 10. I was impressed by his help.

    Rochelle

  • Christine said:

    Wow, that’s a bit scary! I see you’re back up now. Curious, how long was your site down? will also be curious to know what happen (I have the same host plan)
    BTW, I like your post on the needed plugins, good work.

  • Alice said:

    Can’t wait to read what happened! This could happen to any of us, and its always bad news.

    My fear is that as the number of my niche sites grows, I won’t be able to catch problems with each of them. If a site goes down, it might be down for quite a while until I notice it. I don’t visit most of my sites daily, so this is a potentially big problem.

    What we need is a “site alert” thingie that would tell us when one of our sites was down for more than X amount of time. Now THAT would be something I’d pay money for!!

  • Tom said:

    I just want to play Devil’s advocate for the hosting companies or Hostgator.

    Have you ever had your site start running really slowly and have things timed out? If so odds are you called, emailed, or chatted with the hosting company about it.

    Well, if one account on the server takes a huge load of the processing power, it can affect all of the other users on that server. So in Rochelle’s case, she may have created a problem for thousands of others sharing her server.

    In turn, it may have caused 100 calls, emails, or chat sessions from affected users wondering why their Cat site is not loading right.

    At 10 a month profits get eaten up quickly by the hosts in customer service when these things happen, as you can well imagine. So instead of waiting for the person creating the problem, they address it immediately to cut down on the support costs. So Rochelle was the one affected generating a few support calls but the rest of the users on her server slept well not worrying about there service.

    Now I have to admit, when I first started out, I had a site that was trashing the servers due to following a big story. And I was mad as hell, and a little scared, when they pulled the plug on me.

    But now I understand where the hosting guys are coming from. Just last month one of my sites, not BANS unfortunately, got linked to on the front page of MSN for 4 hours. Well, 15,000 visitors and 4 hours later, my site was neatly shut down by Hostgator.

    I screwed the pooch for everyone else.

    But all it took was one phone call to HG explaining what happened and that the link was off MSN now, and I was up and running again in a few minutes.

    To bring it all together, the tech guys at Hostgator are not trying to be merciless and cruel when they shut you down for using too many resources. They are instead recognizing that if you are using a shared plan and abuse it (intentionally or accidentally), they have to stop you before you ruin the experience for everyone else, and create 100 more calls from those you have affected.

  • Rochelle (author) said:

    @Tom,

    I am really glad you posted your comment. This is something I had not thought of and it makes sense. I appreciate your taking the time to play Devil’s Advocate, because I can now see why a host would shut down a site without warning.

    Rochelle

  • Rochelle (author) said:

    @Tom,

    I am currently writing about what happened to me and what I did to fix it. May I include your explanation of why HostGator probably shutdown my site without notifying me first? It is an excellent explanation but I don’t want to quote you without your permission.

    Rochelle

  • Tom said:

    @Rochelle

    My pleasure, go right ahead!

  • Rochelle (author) said:

    @Tom,

    Thank you :)

    Rochelle

  • Rochelle (author) said:

    I have written about what happened and what I did to fix my site at http://www.nichestorestrategies.com/my-site-was-down-and-it-was-my-fault/

    Rochelle