Time to first byte: why is it so high? [closed]

Solution 1:

Your web-server may be trying to write client's hostname in log file, and one of DNS servers configured in /etc/resolv.conf may be answering slowly.

Unless you definitely need the client's hostname for logging purposes, you should ensure that the hostnamelookup is disabled by setting:

HostnameLookups Off