Thread: Slow response with Apache remotely, fast locally
i'm running ubuntu 10.10 desktop, 64-bit.
i've had issue year; rebuilt machine , issue persisted across fresh install.
on local machine, requests fast, on remote machines (like windows machine on desk here), requests delayed (firefox status tab says "waiting %hostname%") 5 seconds. doesn't matter if it's php page or static html page. resources images may delayed 5 or seconds, , requests come in @ once (for example if there multiple images they'll appear @ once). if request page right away come immediately, if wait bit, there delay again.
i've tried adding dns name hosts file , connecting ip -- no change.
web server under no load, use web development , i'm person ever access it.
i've been getting by testing on server rather on windows machine unless need @ ie-specific issue. seems difficult issue troubleshoot, haven't been interested in messing around before now.
running top, can see there no load on server.
running tail -f /var/log/apache2/access.log, can see requests added log @ same moment resources load on page.
googling around other people having issue, came unresolved thread seems identical problem:
http://ubuntuforums.org/showthread.php?t=1095387
accessing , updating files on machine via samba causes no delays.
suggestions on things try?
update: did capture on windows machine wireshark, , request happened 5.007846 seconds before 200 response, , 200 response gets added access.log. seems 5 second number not accident.
here's screenshot of capture: http://i.imgur.com/2cffl.gif
"time" column time since capture began, in seconds.
i can't believe have resolved issue.
http://www.hsuconsulting.com/2011/01...-second-delay/
issue .htaccess file. renamed (so wouldn't load) , page loaded instantly. narrowed down specific rules that, deleting them, remove delays. rules were:
#deny 110.88.0.0/14
# chinese scrapers faked ua 050911
yes, literally 2 comments causing delay.
.htaccess strange beast.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Slow response with Apache remotely, fast locally
Ubuntu
Comments
Post a Comment