我有一个与数据库交互的应用程序。突然间,有时,页面Server connection Reset
在我的 Web 浏览器中显示错误。更令人惊讶的是,在localhost
页面上访问会触发 avast 上的警报。
如果我使用 刷新页面Ctrl+R
,它偶尔会发生。PHP 没有显示任何错误消息,而且服务器似乎比平时花费了更多的时间来响应。
我将 wamp 与 apache 2.4、PHP 5.4.3 一起使用。我不知道从哪里开始调试或问题出在哪里。
[Sun May 13 13:01:14 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:14 2012] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Sun May 13 13:01:14 2012] [notice] Server built: May 13 2012 12:51:11
[Sun May 13 13:01:14 2012] [notice] Parent: Created child process 3660
Apache server interrupted...
arn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:15 2012] [notice] Child 3660: Child process is running
[Sun May 13 13:01:15 2012] [notice] Child 3660: Acquired the start mutex.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting 64 worker threads.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:28 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun May 13 13:01:28 2012] [notice] Child 3660: Exit event signaled. Child process is ending.
[Sun May 13 13:01:29 2012] [notice] Child 3660: Released the start mutex
[Sun May 13 13:01:30 2012] [notice] Child 3660: All worker threads have exited.
[Sun May 13 13:01:30 2012] [notice] Child 3660: Child process is exiting
[Sun May 13 13:01:30 2012] [notice] Parent: Child process exited successfully.
更新:
当使用“连接请求”时,cachegrind
它会显示方法调用堆栈的部分列表。意味着它不会运行所有代码。它显示了一些 require_once 调用和它。下次如果我重试获取页面,页面将执行并显示整个调用堆栈。
当“发生连接请求”时,它显示
18 different functions called in milliseconds (1 runs, 18 shown)
重试后
220 different functions called in 329 milliseconds (2 runs, 220 shown)
我不知道为什么它显示 2 次运行。执行页面也需要更多时间。在它完成之前不到 100 毫秒。