PHP Webpage not loading - Nothing in apache access logs
I have been seeing a strange problem with one of my PHP page intermittently.
I found that the Page was loading forever and tried to do some tests with curl.
here are the results
1st run- % -> 0 and keptloading until 01:01(I ctrl+c'd)
2nd run responded normally 4 secs load time
3rd run again started to load for more than 5 secs, so ctrl+c'd
4th run responded normally 4 secs load time
I was tailing the apache access log while i was requesting the pages. When the page was not loading(aka 0% ) i was not able to see any entries in apache access logs.
for 4 requests i can only see 2 access entries in the apache access log.
127.0.0.1 - - [20/Jul/2012:17:33:28 -0700] "GET /lmo/auth/index.php HTTP/1.1" 200 1317 "-" "curl/7.21.7 (i386-pc-win32) libcurl/7.21.7 OpenSSL/0.9.8r zlib/1.2.5" 127.0.0.1 - - [20/Jul/2012:17:33:50 -0700] "GET /lmo/auth/index.php HTTP/1.1" 200 1317 "-" "curl/7.21.7 (i386-pc-win32) libcurl/7.21.7 OpenSSL/0.9.8r zlib/1.2.5"
- Nothing in the apache error.log either
More info: 1 .The same is the case over HTTP vs HTTPS
2 .i am using win 2003 with xampp 1.8.0(recently updated xampp , and was seeing slower load times even before i updated.)
3 .apache 2.4 , php 5.4 The page i am loading has minimal php code, with most of the code being HTML/JS.Its a login page.
I think that there is some thing wrong going with apache. Can anyone help me on how i could debug this problem?
What has the PHP script to do for sending you a complete page? Maybe there is some IOWAIT issue. Or another deadlock or wait situation which could be filebased. (fopen for example) or a MySQL transaction which is blocked by another one.