Too much pwnage

My site was down for about 8 hours today for a bitter-sweet reason: it’s using too much of the shared host’s resources. That’s because the site’s getting more traffic (well, when it’s suspended from high CPU usage, it doesn’t get any traffic…), but that’s just 20K pageviews a week. I’m surprised, since really that’s not much at all.

I’ll probably upgrade the plan again and more importantly will review my wordpress plugins to see if there are any settings I can de-tune, so it doesn’t trigger the ‘high CPU and memory’ suspension again in the meantime.

If you’re geek enough to help, I’ve a file listing all the plugins I have installed.

I have just turned the page cache settings in Total Cache down to every 3 hours, it was more regularly before, and de-activated some forum software I had on a dev server. I also added CPU/query stats to the page footer. My host also tells me the site was using loads of RAM.

Related Posts:

2 comments to Too much pwnage

  • The only thing that’s markedly different from my site is that you’re using Total Cache while I’m using WP Super Cache.  I’m not sure about the ins and outs of Total Cache, but it if has any in-memory memcached-like options that might be causing the problems.
    I serve between 8k and 20k impressions per day on a 256mb virtual private server without any issues.  Even with some other supplementary services (MySQL, VPN link to my home), I have about 100mB free RAM.
    I do use nginx and fastcgi instead of Apache though, and that reduces my overhead significantly.
    WP Super Cache just creates a static copy of the page whenever someone who is not logged in and doesn’t have a cookie for the site visits it, then serves that page for up to an hour to anyone else.   It uses Apache mod_rewrite rules, so the wordpress PHP scripts are never even loaded if the cached page is present.  If you have the ability to do rewrite rules in a .htaccess file, you might want to check it out.
     

  • Gravity
    Twitter: gravitydk

    Yes, I used Super Cache for a while (and can do htaccess files, yes), but found it didn’t handle dynamic content very well. My sidebars of latest comments didn’t work properly, nor my advertising to search-engine visitors or greeting to regular/new visitors. I couldn’t find a solution to that; have you ever looked into it?

    Total Cache does have a lot of memcache options, but I can’t use them, so instead rely on its page-based caching, which I’d have expected to also keep my CPU usage down. It might have been its minify feature; I asked on wordpress forums if that uses much CPU, answer was no.

    I did read about nginx but don’t think it’s an option for me; my host uses LiteSpeed.

    I’d certainly fall back to Super Cache if I had to, but ideally want to keep the dynamic content cached properly too.

    As aside, what’s odd about your site is how much traffic you get yet relative to your RSS readers. Odd the ratio would vary from mine so much. I get 3-4k views a day and have 200 or so RSS subscribers, yet iirc you had few RSS readers.

    Lastly, I found a bug in my theme which has a workaround that reduced MySQL queries by 50% per page!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>