3

Long page loads - problems with DNS lookup?

view full story
linux-howto

http://serverfault.com – I've noticed my web server takes a long time to load pages recently. Using Firebug, I realised it takes around 4s for the DNS lookup: Connecting: 304ms Sending: 0ms Waiting: 3.45s Receiving: 0ms I thought that was a long time to wait for a HTTP response. In the command line, I initiated: telnet localhost 80 GET / HTTP/1.1 Host: {IP Address} And waited until these next three commands were returned before entering twice. The first command I used was to find out the port number: lsof -p `pidof telnet` Then, to find out the process: netstat -nap | grep {port} And finally: strace -o (HowTos)