Pingdom Home

US + international: +1-212-796-6890

SE + international: +46-21-480-0920

Business hours 3 am-11:30 am EST (Mon-Fri).

Pingdom Blog

Royal Pingdom

Ramblings from the Pingdom team about the Internet and web tech

RSS Feed

Keep track of your shared hosting performance

Shared hosting is the most affordable way to have a website on the internet. The upsides are the low price point and that you don’t need to know how to set up and maintain a server of your own. But there is a downside as well: You are sharing a server with potentially hundreds of other websites.

This can often work fine, as long as the websites you are sharing the server with don’t get too much traffic, and don’t use lots of resources. The problem is when one or more of those websites start using more than their fair share of the web server’s resources. This can cause a slow-down for all the websites on that server, including yours.

Common performance culprits

There are a lot of factors that can make the websites on a shared server slow down. Here are some examples:

  • Scripts (for example PHP scripts). Badly coded and possibly buggy scripts can take up large parts of the server resources or in some cases even block all resources while they are executing. For example, it is very common that web developers use the web server as their test environment, and use trial and error to solve bugs.
  • Database performance or connection problems. A script for a website can use up a lot of database connections (if not all) either because of a bug, bad coding or a lot of traffic. This will of course be a problem for other sites trying to use the same database server.
  • High-traffic website on the same server. Either naturally or through the likes of Digg. It’s worth noting that a web server normally has a limited number of simultaneous connections it can handle. This limit is usually shared amongst all sites on the server.
  • Oversold web server. Too many sites running on the same server will put a lot of strain on the resources, even if they are all “well behaved”.
  • Backups of web servers or databases. Many hosting companies make backups during the night. This can often make databases and web servers non responsive or really slow during that time. Since many outside the US are using US hosting companies, that can mean that these slowdowns are extra inconvenient due to time zone differences, for example occurring early in the day or in the evening.
  • Bandwidth problems during peak hours. Some hosting companies will wait as long as possible with buying more bandwidth when they are growing. This means that due to these growing pains, the websites and all other services of this hosting company (e.g. email) will respond and work slower due to bandwidth limitations during peak hours.

Monitor your website’s response time

It’s not enough to just check that the server and network is up (for example by pinging the server). This will only tell you that the server is physically up and the network connection is working. It will not tell you that your website is loading correctly. You need to monitor how quickly your actual website loads (and that it loads at all, of course).

Example of response time graph
Above: An actual real-life example of response time increase on a shared server over a month. During two days the load time for the HTML alone was an abnormally high 6 seconds instead of under 2 seconds as it had been before. The owner of the website talked to his web host who were able to fix the problem eventually.

By monitoring your website’s response time (for example with Pingdom), you will be able to see if your website starts being slow. As we explained above, all it takes is for your host to add one misbehaving (or very popular) website to the same server that you are on, and the performance for all websites on that server can be drastically changed for the worse. If you are unlucky, your website can become so slow that it can’t be loaded at all.

What can you do?

If you find that your website suddenly becomes slow for no apparent reason, contact your hosting provider and explain the problem. Ask if they can either move your website to another server with less load, or find and move whatever website or other reason that is causing the performance problem.

This is of course provided the increased response times (and load times) are not caused by changes you yourself have made to your website. At this time, it is a good idea to test the performance of all elements of your website, something you can do with a website load-time test.

If it is your own site that has become more resource intensive, it may be time to start looking for a VPS or dedicated server.

Conclusion

Shared hosting is an affordable starting point when you want to publish a website on the internet, and in many cases you will never need to take the step up to dedicated hosting. Just make sure you keep on top of the performance of your website. This is of course the case for any website, but for shared hosting there are more external factors affecting your performance.

(Note: This kind of monitoring is also something that a hosting company itself can do. If you are a hosting company, put a test website on each of your web servers and monitor their performance. That way you will be able to detect problems quickly and avoid unhappy customers.)

Want to test your site every minute?








You will get an email with your login information.

7 Comments

Nice post. This is a very basic task of anybody using a web host. Else you might end up facing large hosting problems when they can be prevented at an ealier stage of monitoring.

Pingdom Podcast #6

Pingdom’s Podcast is a weekly show about Internet, web, security, and mobile stuff.

In this show, Saleh also gives us an update on the pending approval of his Carbon for Windows Phone Twitter client. We also talked about Nokia’s recent financial results, if Google Chrome can hit more than 50% market share this year, and the recent privacy-blunder by the guys behind the Path mobile app.

Read more

There’s no denying that Google Chrome continues to be the darling of the web browser market. And as we predicted in July last year, Chrome overtook Firefox around November 2011.

So now the question is, when will Google also wrestle down Internet Explorer, and become the undisputed king of the browser world? In December 2011, Chrome 15 became the most popular browser in the world, beating Internet Explorer 8, but if you combine all IE versions, Microsoft still holds the number 1 spot.

Equipped with the latest web browser statistics from StatCounter, we set out to see when Chrome is likely to achieve more than 50% market share.

Read more

Up or not? Keep track of your favorite US sports websites

Want to see how your favorite US sports site is doing, if it has a perfect 100% uptime score or not? If you want to check the latest scores and it isn’t working, could it be a problem with your computer or connection, or the site? We’ve got the solution for you!

For some time now we’ve been monitoring 34 major US sports and news sites related to sports. Our recent articles on the Super Bowl are a result of that monitoring.

Now you can look at how these sites are doing yourself on the public reports page for this list of US sports websites.

Read more

Google Maps turns 7 years old – amazing facts and figures

Who has not used Google Maps? Raise your hand! Since the launch 7 years ago, Google Maps has become the de facto map service that users around the world go to for all their mapping needs.

As we say Happy Birthday to Google Maps, read on to find out some of the critical milestones in its history, and some amazing numbers and statistics.

Read more

In 2010, there were just over 1 million secure Internet websites worldwide. Almost half of those, or 446,992 to be exact, were located in the United States.

But in which country can we find the most secure websites in relation to population? The answer may surprise you.

Read more