zbuffered
July 1st, 2011, 10:35 PM
I'm running Ubuntu 10.10 Desktop, 64-bit.
I've had this issue now for about a year; I recently rebuilt the machine and the issue actually persisted across a fresh install.
On the local machine, requests are fast, but on remote machines (like the Windows machine on my desk here), requests are delayed (Firefox status tab says "Waiting for %hostname%") almost exactly 5 seconds. It doesn't matter if it's a PHP page or a static HTML page. Resources like images may be delayed another 5 or so seconds, and usually all the requests come in at once (for example if there are multiple images they'll usually appear at once). If I request another page right away it will sometimes come up immediately, but if I wait a bit, there will be the delay again.
I've tried adding the DNS name to a hosts file and connecting by IP -- no change.
The web server is under basically no load, I use it for web development and I'm effectively the only person to ever access it.
I've been getting by by testing on the server rather than on my Windows machine unless I need to look at some IE-specific issue. It seems like a difficult issue to troubleshoot, so I haven't been interested in messing around with it before now.
Running top, I can see that there is effectively no load on the server.
Running tail -f /var/log/apache2/access.log, I can see that the requests get added to the log at about the same moment that the resources load on the page.
Googling around for other people having this issue, I came up with this unresolved thread which seems like an identical problem:
http://ubuntuforums.org/showthread.php?t=1095387
Accessing and updating files on the machine via Samba causes no delays.
Any suggestions on things to try?
Update: I did a capture on a Windows machine with wireshark, and the GET request happened 5.007846 seconds before the 200 response, and the 200 response is what gets added to the access.log. It definitely seems like that 5 second number is not an accident.
Here's a screenshot of the capture: http://i.imgur.com/2CFfL.gif
The "Time" column is time since capture began, in seconds.
I've had this issue now for about a year; I recently rebuilt the machine and the issue actually persisted across a fresh install.
On the local machine, requests are fast, but on remote machines (like the Windows machine on my desk here), requests are delayed (Firefox status tab says "Waiting for %hostname%") almost exactly 5 seconds. It doesn't matter if it's a PHP page or a static HTML page. Resources like images may be delayed another 5 or so seconds, and usually all the requests come in at once (for example if there are multiple images they'll usually appear at once). If I request another page right away it will sometimes come up immediately, but if I wait a bit, there will be the delay again.
I've tried adding the DNS name to a hosts file and connecting by IP -- no change.
The web server is under basically no load, I use it for web development and I'm effectively the only person to ever access it.
I've been getting by by testing on the server rather than on my Windows machine unless I need to look at some IE-specific issue. It seems like a difficult issue to troubleshoot, so I haven't been interested in messing around with it before now.
Running top, I can see that there is effectively no load on the server.
Running tail -f /var/log/apache2/access.log, I can see that the requests get added to the log at about the same moment that the resources load on the page.
Googling around for other people having this issue, I came up with this unresolved thread which seems like an identical problem:
http://ubuntuforums.org/showthread.php?t=1095387
Accessing and updating files on the machine via Samba causes no delays.
Any suggestions on things to try?
Update: I did a capture on a Windows machine with wireshark, and the GET request happened 5.007846 seconds before the 200 response, and the 200 response is what gets added to the access.log. It definitely seems like that 5 second number is not an accident.
Here's a screenshot of the capture: http://i.imgur.com/2CFfL.gif
The "Time" column is time since capture began, in seconds.