How do make sure the CPU usage of you website is not excessive?

12 replies
  • WEB DESIGN
  • |
Hi,

My web host, (justhost.com) have just sent me a rather nasty email saying my account has been suspended for excessive CPU use. They focused on one of my small wordpress blog which I rarely use, (more of a journal really), but it has little or no traffic being sent to it, and it is only updated every other week.

Now I understand and agree that there should be a fair use policy, but, I can see no way of knowing how much CPU you are using and can only take their word for it.

The first I heard about this was this mentioned email suspending my account. I will of course eat humble pie and do what they tell me to reinstate things, but what is bothering me is the fact that I cannot measure my own CPU and what is to stop that happening again in the future.

I assume it is coming from a wordpress plugin (s), but which one (s)?

Is there way of measuring your own CPU usage;
or is there any way to determine how much a plugin will use?

I do not want this to happen again, but surely I am not the first to complain about this.

Thanks, Gordon.
#cpu #excessive #make #usage #website
  • Profile picture of the author spa3
    This is just a shot in the dark. First, I don't know if there's a way to tell how much CPU you are using cause it's on their server that is using the processing to host.

    However, I'm not an expert by any means, but if your pages are loading slow, or you have a bunch of plugins going, then that might be a good sign. It may not be just one plugin, but possibly the accumulation of several?? Just a thought.
    Signature

    For those interested in e-commerce for Wordpress: Market Theme

    {{ DiscussionBoard.errors[5594452].message }}
  • Profile picture of the author RichKent
    Make sure you have WordPress updated to the newest version, and make sure all your plugins and themes have been updated too. If you're using an old and outdated theme it could be running bad database queries that chew up lots of CPU resources.

    To check this, install the Debug Queries plugin so you can see what queries are running on your site. It's possible that you have too many, or that some of them aren't resolving correctly. The plugin is here: WordPress › Debug Queries « WordPress Plugins

    Anything over 25 queries is too many. I've found sites that were running 100+!

    Also, old or outdated plugins can cause a database conflict that chews up resources. Check each plugin and make sure that they've been updated some time in the past 6 months - and if not find a replacement plugin that has, or simply delete the plugin.

    Good luck!
    {{ DiscussionBoard.errors[5596669].message }}
    • Profile picture of the author bigcullie
      Thanks SPA3,

      It is a poser, my host is bluntly saying

      "You are using to much CPU so we will suspend you, but we are not giving you any tools to measure your CPU usage, and by the way we are refusing you access to do anything about it."


      If all companies were allowed to run this way, we would all be in trouble. It has been a week and I have just been given basic accesss to delete things but not enough access to disable plugins.

      I am thinking I may have to many security programs running, I don't know, just a guess as I cant measure CPU.

      On thing for sure is that I am finding this to be a more serious problem than you may think; as many people are not coming forward and saying it as it is.

      ----------------------------

      Thanks Rich that is good information.

      As far as I am aware all themes and plugins are up to date, but I will give the Debug Queries plugin a go.

      I have just stuck with the 2011 theme, you can do a lot with that. I may have to many plugins, so maybe I should be more selective.

      I will get on to it and report back if I find anthing definate; as I am still working in the dark.

      All the best, Gordon.
      {{ DiscussionBoard.errors[5622429].message }}
  • Profile picture of the author Deadly Designs
    Have you ever thought of hosting your own server? it is very easy and does not require annual fees :p How much do you pay for hosting currently?
    {{ DiscussionBoard.errors[5622767].message }}
    • Profile picture of the author bigcullie
      Originally Posted by Deadly Designs View Post

      Have you ever thought of hosting your own server? it is very easy and does not require annual fees :p How much do you pay for hosting currently?
      Hi, DD,

      I did think of it,but the costs put me off; and I did not think I was doing that much that I could justify it. My web hosting fees are very reasonable, in fact purchsed in advance they are very low.

      However you have my thinking. I would like my own server but I did not think I could justify it.

      How much are you talking and with whom? I am now interested.

      Thanks, Gordon.
      {{ DiscussionBoard.errors[5626737].message }}
      • Profile picture of the author bigcullie
        Sorry I am getting mixedup with a dedicated server which are out on my range for now.

        I think you mean something like Apache or the Abyss Webserver both of which are free. No, I have business blogs, I don't think my own internet connection could handle it.

        I may however give it a trial run to see how I get on.
        {{ DiscussionBoard.errors[5626778].message }}
  • Profile picture of the author Lovelogic
    Good webhosts normally provide resource useage stats for RAM and CPU on the hosting cPanel, even some of the free web hosting providers are now doing this. So may be worth going and having a look.

    Wordpress blogs bumping up against cpu limits is a common problem often caused by outdated or badly written plugins (auto content generators are a common culprit) and the web host themselves may have accidently caused the problem by changing up to the latest php version. Some command functions have been depriciated (no longer working) in the latest release thus some older plugins throw all kinds of errors and exhibit odd behavior.
    {{ DiscussionBoard.errors[5627092].message }}
    • Profile picture of the author bigcullie
      Originally Posted by Lovelogic View Post

      Good webhosts normally provide resource useage stats for RAM and CPU on the hosting cPanel, even some of the free web hosting providers are now doing this. So may be worth going and having a look.
      That would easily solve the problem. Could you suggest such a web host, I am thinking of moving to hostgater. I am really getting the run-around from justhost; who are virtually ignoring email requests for access.

      Resource useage stats for RAM and CPU on the hosting cPanel would have easily elimated my problem.

      Thanks,
      {{ DiscussionBoard.errors[5628179].message }}
  • Profile picture of the author iqbal
    I would disable all the plug-in. what plug-in does you can do in with few line of code. I would advice you to change the host, there are may small hosing company provide very good service.
    {{ DiscussionBoard.errors[5639083].message }}
  • Profile picture of the author Lovelogic
    Hostgator do a have resource useage monitor but it's just a very basic realtime display of what's going on, at least for the entry level accounts. The more expensive packages may actually provide a log of activity but don't know for sure. (X10 free web hosting provides resource useage logging so their parent company should as well)

    As others have said try disabling all plugins then bring them back online one at a time, ask your web host for help and look at the site using the cpanel file browser for error log files that may of appeared these could shed light on the offending plugin.
    {{ DiscussionBoard.errors[5639238].message }}
    • Profile picture of the author bigcullie
      Originally Posted by Lovelogic View Post

      As others have said try disabling all plugins then bring them back online one at a time, ask your web host for help and look at the site using the cpanel file browser for error log files that may of appeared these could shed light on the offending plugin.
      Thanks L, I agree even though it is time consuming. I have found a plugin called PluginHogDetector which moniors you refresh speed. I then stopped the plugins one at a time, and found some plugins could hogging as much as 5 seconds per refresh time.

      UMS,

      Thanks, justhost are being very ackward, ignoring emails, and denying they received them. Not exactly a professional attitude for resolving problems.

      You can help but feel that if a host company puts so much effort into policing CPU usage; issuing strict sanctions for breaking them, then they should at least give their customers tools to monitor their usage; that way the customers with know if they are infringing rules and do someting about it or accept the consequences.

      The way they are work, which I am sure others are doing likewise is to penalise somebody for unknowingly breaking a rule or a limit which the host do not give its customer means nor access to measure performance.

      It is a rather draconian penatly for a misdemeanor, misdemeanor outwith your measured control.

      Forgive me for sounding off, but these big companies are being allowed to get off with this type of behaviour, and I am sure some clown will answer back saying something like, "it was in the terms of agreement" which you agreed to.

      Anyway, I agree with your comments, I will vote with my feet.

      Gordon.
      {{ DiscussionBoard.errors[5642236].message }}
  • Profile picture of the author UMS
    I've had my account temporarily suspended a couple of times on Hostgator due to excessive CPU usage.

    However, at least HG give you details as to what processes are consuming the CPU and assistance with improving it.
    {{ DiscussionBoard.errors[5639344].message }}

Trending Topics