Wp Affiliate Pro - The #1 Plugin For WordPress Blogs
Powered by MaxBlogPress  

 

5 Tips to Help Your Slow or Sluggish Blog or Web Site (Wordpress Especially) | JTPRATT's Blogging Mistakes
JTPratt's Blogging Mistakes

Home » 5 Tips to Help Your Slow or Sluggish Blog or Web Site (Wordpress Especially)


 
 
 

Posted in:

blog-setup category image database-issues category image web-hosting category image wordpress category image
1,415 views


Do you have a slow or sluggish web site or blog? I’m going to give you 5 things you should check that can help quite a bit. Also - I’ll have a few tips specifically for Wordpress sites.

In my previous post about importing large mySQL databases I showed you how to use the command line to import to get big data dumps in a fresh database. In that particular situation I was moving from one web host to another. But sometimes you might have a different reason for wanting to move a web site to a new database.

I’ve had web sites before that seemed to get slower over time. There are a number of factors that could be causing this. If you notice your web site taking longer to load, becoming sluggish, or even producing random errors (like ‘mySQL server went away’), there are some things you should investigate.

Here’s a list of things to think about:

  1. Are you getting more traffic? Check your stats for your site and see if you’ve had a sudden spike in traffic. If you are where is it coming from? Is it coming from a particular article or page? Is it from just one referrer or many? Is a robot or crawler hitting your site too much?
  2. Do you have too many external calls? When your site loads in a brower, watch the bottom status bar to see (while it loads) where it’s hanging up and waiting for data to come back. Do you have items from Amazon, eBay, other affiliate sites, chiclets, technorati tags, mybloglog data, feedburner calls, or other items that come from outside your site? Try commenting them out one by ond and seeing how much faster your page loads
  3. Are your graphics optimized?? Do you have any graphics on your pages that are excessive in size? Are you calling any graphics on remote sites that you could host in your site? Do all you graphics contain a height and width tag?
  4. Have you optimized your database? A web site database gets thousands of transactions per day. Think of it like a moving piece of machinery - at one time or another something will break or get clogged up. Every now and again you should login to your web admin control panel and use your myPhpAdmin (or other mySQL tool) to optimize your db. Select all the tables, and then “repair” and “optimize” and watch the results to see what it did. You would be surprised how well this trick might work.
  5. Is your web or database server overloaded? This can be a tricky one to figure out. If you don’t have telnet access, you need to call support for your web host and find out what the CPU and memory utilization is for the server you’re on. If it’s really high you may want to request to be moved to a new one. Most companies monitor this, so more than likely it could be your database mySQL server. Your myPHPAdmin tool might already have a tab or tool to bring up the server memory utilization, so you can see how high it is. If it’s not high, find out if your web host has a limit on concurrent connections (some limit to 150 or less) and watch your visitors per hour. Many times though, there are a just a few web sites hogging all the resources on a db server

If you have a Wordpress site, I would also additionally check your WP theme and your WP plugins. First - remove any plugins that you aren’t using. Deactivate them and physically delete them from your web server. I read once that even deactivated plugins affect the speed of a site because the Wordpress loop checks to see if they are activated or not. If you have plugins you specifically don’t need or use - get rid of them. You want your plugin page in the admin panel to have only plugins that are essential to your blog and they should all be active. If they aren’t - delete them from the server until you need them. Also, check your theme if you don’t write your own. Validate the code at W3C or another site and make sure that there aren’t major errors that are slowing the browser down. Just because you have a nice looking theme, (if you didn’t code it yourself) it doesn’t mean that the coder that made it had the most efficient code. If you have a lot of errors - maybe you should consider reworking it or just plain get another theme.

In my particular instance I thought I had my mySQL database hosted on a server that was too busy. At my host they have multiple database servers and when you create a new one it’s assigned at random. So I created a new fresh database - and of course it was on a different server. Then I exported my web site using myPHPAdmin, and I was going to import it in the fresh database using myPHPAdmin as well. But as it turned out my SQL file was 11MB, and some of the INSERT rows were very, very long. The import failed. But as I mentioned before - it was easy enough to use BigDump large mySQL db database import script for free to do the heavy work for me. In seconds I had a brand new copy of my site on another database server. So I changed my config file, and was up and running on another server quickly. In my situation this new server seemed to perform a bit better than the old one.

If you’ve experienced your web site or blog (especially Wordpress) getting slow, bogged down, or getting random errors - try my list above first. If you’ve found your own solution, or experienced a problem that you can’t fix - please add it in the comments below now!


7 Responses to “5 Tips to Help Your Slow or Sluggish Blog or Web Site (Wordpress Especially)”

  1. fak3r Has the following to say...

    Some good tips here, but when you mention to watch your browser to see about external calls, you really need to be using Firefox with the add-on Firebug. This will give you a wealth of info on your site, and what’s taking time to load.

    Your point about optimizing images is key, there are plenty of online sites that will do it for you for free (something nice if you’re at work and don’t have access to PS or The Gimp).

    You mention tuning your DB, but how about ensuring that the new database is created as InnDB? That’ll help, and I think is default for anything +5.2.x. Also, while most won’t have access, you can really improve things in MySQL by modifying the my.cnf conf file on your server. Upping memory usage and enabling caching are key here.

    Other ideas that I use, but are only applicable if you have your own server or access:

    webserver - instead of Apache, use Lighttpd, it’s faster and ‘lighter’. if you’re extra l33t, try out nginx!

    php - ensure you have some kind of php accelerator - I’ve used eAccelerator (a fork of the old MMTurke Cache) for years, but I’ve recently been using Xcache (created by a developer of Lighttpd) and have been happy with it so far.

    reverse-proxy - a big one if you get a lot of traffic, but still helpful if you don’t. Squid has always been the choice, but again, I’ve gone with a newer app, Varnish. I’ve done tests in production areas at my work, and believe the hype, Varnish will stand up and really help, esp if you ever get a Digg’ing. It is fast, and old Squid just dosen’t compare.

    Lastly, within Wordpress add WP Cache, or the newer/updated fork, WP Super Cache - it speeds things up nicely. Yes, you can have all of these layers of caching (reverse proxy, php opticode, wp-cache) working together.

    So these are just some of my geekier suggestions, it’s funny, I’ve run my server online from home since 2001, but it’s only been the last 3 months I’ve looked at monetizing sites; it’s good fun, and sites like yours give a good start to a ‘n00b’ like me!

    Hope my tips help, gimme a shout if you have any questions. I’m hoping to be able to contribute to the whole online marketing world soon much as you are now.

    Thanks.

    fak3r’s last blog post..Do the collage - the art of Bob Pollard

  2. BradBlogging.com - Increase Website Traffic With Easy To Follow Steps Has the following to say...

    I never really thought of optimizing images on my blog.. =)]

    I just made a custom theme and decided to see where that took me!

    BradBlogging.com - Increase Website Traffic With Easy To Follow Steps’s last blog post..1000 Entrecard Credits + More Up For Grabs! Details Inside..

  3. 38 ways to optimize and speed up your WordPress blog | WordPressGarage.com Has the following to say...

    [...] 5 Tips to Help Your Slow or Sluggish Blog or Web Site (Wordpress Especially) [...]

  4. Shop Network Has the following to say...

    If a website is sluggish due to numerous mySQL queries that take longer than 1 second to execute, then who or which company do you recommend to optimize mySQL?

    Shop Networks last blog post..Fossil Watch - Black Dial Analog

  5. admin Has the following to say...

    @Shop Network - it depends on what you’re talking about. If it’s Wordpress I’d first try and deactivate all plugins. If you get your speed back it’s a plugin conflict, add them back one by one to find it. If it’s a custom site or something, or another problem find a database expert on eLance - you can get your issue resolved for a pretty reasonable rate.

  6. fak3r Has the following to say...

    @Shop Network - if you have access to them, get a look at the mysql.err.logs, then work on tweaking the mysql conf file to use more cache for its queries. Lastly do what I’m doing, if your system is overloaded and working in swap a lot, upgrade to a new box that can hold more RAM, we’ll see, but I think this is going to help me immensely - but before that, do some Googling, you’ll likely see big improvements over the default configs.

  7. Tom Sawyer Has the following to say...

    Although this article is somewhat old, it still has some good information and things that can be applied to speed up a site nicely. Thank you for what you do.

    Tom Sawyers last blog post..Really Jesse, the Mic is Still On!

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! We would like to reward you for becoming part of our community! Your comment is valuable not only to us, but also all the other readers of this blog!
 

 


Click to add smilies to your post! = =[] ^=( =(( =(| =)r =|8 =0 =)~ =00 =( =;; =)] =;;;