简体   繁体   English

apache,php-请求超时

[英]apache, php - request timeout

Good day to all. 祝大家有美好的一天。

I have a little funny trouble that I don't really know how to... begin debugging. 我有一个小麻烦,我真的不知道该如何...开始调试。

I have a site with some articles and other stuff, based on symfony ( http://www.magazinulprogresiv.ro/ ). 我有一个基于symfony的文章和其他内容的网站( http://www.magazinulprogresiv.ro/ )。 Nothing unusual till now. 到目前为止,还没有异常。

The funny part is that sometimes it works ok, sometimes it gives timout (for the same page). 有趣的是,有时它可以正常工作,有时它可以给timout(对于同一页面)。

The thing is that I received it for debugging, I didn't make it so I can't provide 2 many details. 事实是我收到它用于调试,但我没有这样做,所以我无法提供2个很多细节。 All I'm asking is: do you think is an apache problem (that's my personal opinion till now, I started some logging but I'll get the data later)? 我要问的是:您是否认为这是一个apache问题(这是我个人的观点,到目前为止,我开始进行一些日志记录,但稍后再获取数据)? Or you think is code related (I would have excluded this but it seems that there have been some code changing recently and no server changes and before this it was working ok)? 或者您认为与代码相关(我本可以排除此代码,但似乎最近有一些代码更改,没有服务器更改,在此之前一切正常)?

The problem was first spotted on: http://www.magazinulprogresiv.ro/articol/118/Magazinul_tip_convenience.html , but I managed 2 reproduce it on homepage, and other pages. 该问题首先发现于: http : //www.magazinulprogresiv.ro/articol/118/Magazinul_tip_convenience.html ,但是我设法在首页和其他页面上重现了2个问题。

Edited: added screen shot. 编辑:添加了屏幕截图。 Also I managed to reproduce with an image so is almost definitely apache problem (although it reproduced much more harder). 我也设法用图像进行复制,所以几乎肯定是apache问题(尽管复制起来要困难得多)。

在此处输入图片说明

In my experience, if the scripts takes too long, the server respond with a timeout. 以我的经验,如果脚本花费的时间太长,服务器将响应超时。 If you are debugging and stop the execution for too long (not sure how much, a minute or so) the server shows a timeout. 如果您要调试并且停止执行时间太长(不确定多少分钟或一分钟左右),服务器将显示超时。 I think your script is in a loop or something like that. 我认为您的脚本处于循环或类似状态。

I found the issue. 我发现了问题。 Well not exactly but is not my problem any more. 好吧,不完全是,但是我的问题了。 I was looking for the logs when suddenly the server stop working. 当服务器突然停止工作时,我正在寻找日志。 So I pinged it and ping failed. 因此,我对其执行ping操作,但ping操作失败。 So the problem is kind of clear and is the hosting. 因此,问题很明显,而且是托管。 (server not responding to ping kind of eliminates any programming issues.) (服务器不响应ping消除了任何编程问题。)

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

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