Current time: 12-04-2020, 06:57 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Abnormal TTFB (Time to First Byte) for static files
05-09-2015, 10:51 PM (This post was last modified: 05-09-2015 10:52 PM by dfavor.)
Post: #5
RE: Abnormal TTFB (Time to First Byte) for static files
Best to actually determine the real reason why.

Here's how.

First, you must test real speed, meaning speed on your server. To do this...

1) login to your server using ssh

2) cd to root directory of your site

3) create an empty file - touch foo.txt

4) test serving speed of this file via something like this...

net3# ab -k -t 60 -n 10000000 -c 5 | egrep '^(Failed|Requests)'
Completed 1000000 requests
Completed 2000000 requests
Finished 2957115 requests
Failed requests: 0
Requests per second: 49285.25 [#/sec] (mean)

This report is from a marginally tuned server.

Notice 1,000,000 visitors launched + run for 60 seconds.

All requests succeeded (Failed requests == 0).

Throughput is a measly 49285.25 reqs/sec which means this server requires some additional tuning.

If this number is low, then start by tuning your OS - TCP + file systems + Apache.

If this number is high, then ensure your ethernet adapter is correctly configured + working using ethtool + some bandwidth tester like nttcp running on two adjacent machines or two ethernet adapters on same machine.

If this number is high, then move to mtr + track down point of slow down.

Point of this approach is to make sure your server actually has the potential to serve files fast, before you start debugging other factors.

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Abnormal TTFB (Time to First Byte) for static files - dfavor - 05-09-2015 10:51 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)