简体   繁体   English

PHP网页未加载-Apache访问日志中没有任何内容

[英]PHP Webpage not loading - Nothing in apache access logs

I have been seeing a strange problem with one of my PHP page intermittently. 我间歇性地看到一个PHP页面出现一个奇怪的问题。

I found that the Page was loading forever and tried to do some tests with curl. 我发现Page一直在加载,并尝试使用curl进行一些测试。

here are the results 这是结果

1st run- % -> 0 and keptloading until 01:01(I ctrl+c'd) 第一次运行-%-> 0,并一直加载到01:01(I ctrl + c'd)

2nd run responded normally 4 secs load time 第二次运行正常响应了4秒的加载时间

3rd run again started to load for more than 5 secs, so ctrl+c'd 第三次运行再次开始加载超过5秒,因此按Ctrl + c

4th run responded normally 4 secs load time 第4次运行正常响应了4秒的加载时间

在此处输入图片说明

I was tailing the apache access log while i was requesting the pages. 我在请求页面时拖尾了apache访问日志。 When the page was not loading(aka 0% ) i was not able to see any entries in apache access logs. 当页面未加载(aka 0%)时,我无法在apache访问日志中看到任何条目。

for 4 requests i can only see 2 access entries in the apache access log. 对于4个请求,我只能在apache访问日志中看到2个访问条目。

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 apache error.log中也没有

More info: 1 .The same is the case over HTTP vs HTTPS 更多信息: 1。HTTP与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.) 2 .i我将win 2003与xampp 1.8.0一起使用(最近更新了xampp,并且甚至在我更新之前就看到了较慢的加载时间。)

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. 3 .apache 2.4,php 5.4我正在加载的页面具有最少的php代码,其中大多数代码是HTML / JS。它是一个登录页面。

I think that there is some thing wrong going with apache. 我认为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? PHP脚本可以为您发送完整的页面做什么? Maybe there is some IOWAIT issue. 也许有一些IOWAIT问题。 Or another deadlock or wait situation which could be filebased. 或其他可能是基于文件的死锁或等待情况。 (fopen for example) or a MySQL transaction which is blocked by another one. (例如,fopen)或被另一个交易阻止的MySQL交易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM