Hi All,
I have a bit of a weird situation with some unfamiliar old code on an
unfamiliar old server which I only have basic access to.
The page, which is a series of iframes, is taking a couple of minutes to
load. The URL is all password protected etc so I can't share actual
code, but I was wondering if anyone suggest what it might be or what to
look for next.
Essentially there is a PHP file which is being called 4 times with
different querystring arguments (for the main page + 3 iframes). It
takes 60 seconds+ to load the full frameset.
Essentially...
page.php
which then loads the following in iframes
page.php?foo
page.php?bar
page.php?baz
* The obvious thing is a slow PHP script, so I stuck timers at the
start and end of the script - that's not it.
* The issue still happens when javascript is disabled so not some
wacky js issue.
* I fired up a HTTP proxy to watch what's being sent back and
forwards, and the issue is latency - it's taking a good 30-60
seconds for the server to respond to the HTTP request. Once it
finally responds, it does so quickly.
* Aside from the PHP file requests, there are a couple of images and
a stylesheet being requested. In other words, it's not being
bogged down with tons of media and extra content.
* All requests come from the same domain, it's not a DNS lookup issue.
* If I view the iframe content by itself, I can't replicate the
issue. It responds perfectly normally.
* If I load the full frameset, then 2 out of 4 requests are very
slow, and not the same 2 requests every time.
* Browsing around the rest of the site seems to be fine - it's just
this series of pages that is giving trouble.
* It's curious that the latency period *always* seems to be slightly
over 30s or 60s. But never 27s or 48s. max_execution_time on the
server is 30s - yet my timer script suggests that PHP is dealing
with the request very quickly.
So I'm running out of ideas on this one. Does anyone know what might
cause a request to have very high latency only when it's requested as
part of a frameset?
Harvey.
--
Harvey Kane
Phone:
- Auckland: +64 9 950 4133
- Wanaka: +64 3 746 8133
- Mobile: +64 21 811 951
Email: [email protected]
If you need to contact me urgently, please read my email policy
www.ragepank.com/email/
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]