Optimizing Website Server Bandwidth - Case Study Example
(Page 3 of 4 )
Say a certain website needs to be optimized in terms of bandwidth. The webmaster will compute the estimated true bandwidth and compared that with the data reported by the hosting company. The result will be the basis for optimizing the website by implementing corrective actions.
Step 1: Install Firefox Page Speed plug-in.
Before you can install Page Speed, however, you need to install Firebug.
The objective of using these tools is to measure the total web page sizes of your site. Web page size is based on the sum of the following components (that consume some bandwidth during transfers from server to client):
a. HTML code
b. CSS file
c. Image files (.jpg, .gif, etc)
Step 2: Go to your home page and, using the Firefox browser go to View ŕ Firebug. In the Firebug console, go to Page Speed console and then click “Analyze performance.”
Step 3: When the analysis is complete, click the “Resources” tab, and scroll down until you see the total:
Use the value under file sizes, which in this case is “832.4kB.”
Step 4: According to Google Analytics (dashboard – site usage data), there are 830 visits this month with three page views per visit. Converting to daily gives us this equation:
Average daily visitors = 830/30 = 28 visitors per day
Step 5: The download monitoring recorded two daily downloads on average, at an average file size of 3500 kB. We now have all the numbers we need to complete our equation.
Estimated true bandwidth= [(Average Daily Visitors x Average Page Views x Average Page Size) + (Average Daily File Downloads x Average File Size)] x 31 x Fudge Factor
Estimated true bandwidth = [(28 * 3 * 832kB) + (2 * 3500)] * 31 * 1.5
Estimated true bandwidth (one month) = 3575292 kilobytes = 3576 Megabytes ~ 4 GB
The hosting company bandwidth report for the website says that around 5844 MB of actual bandwidth is being used, which is greater than the estimated true bandwidth.
Results: Since the actual bandwidth is greater than the estimated true bandwidth, the administrator examines the website and founds out that:
- The website does not have hotlink protection enabled and discovers a lot of websites leeching their content. That eats up some bandwidth.
- There are links pointing to the location of downloads, and the log reveals that bots are downloading the files without reason (as part of the website crawling process).
- There are uncompressed pictures, and website compression is not enabled.
More Web Hosting How-Tos Articles
More By Codex-M