运行APACHE崩溃的Windows服务器 - CPU 100% - Drupal网站

时间:2014-03-12 21:23:04

标签: php windows apache drupal drupal-views

过去几周,我的Drupal网站遇到了一个重大问题。我一直试图回答问题的来源,但目前很难解决,如果它与模块相关或服务器相关。

基本上我的服务器正在达到100%的CPU,并且在我重置APACHE之前不会停止。我没有收到带有PHP错误的WSOD,并且我的PHP错误日志中没有新条目。另外,因为PHP没有给我一个错误,所以我无法使用xhprof进行调试。

我发现当我有多个用户浏览网站时以及我在浏览器中快速打开多个标签时会发生这种情况。我起初以为是因为我使用views字段模块在页面中嵌入了一些视图,每个模块都启用了上下文过滤器。这些页面通常是出现问题的地方。

然而,我已经能够通过在不存在视图的多个选项卡中快速打开页面来复制崩溃。这开始让我觉得它与服务器有关,但因为我在服务器方面没有太多经验,所以我不确定要查找什么或如何调试。

我的服务器和模块设置的详细信息如下。我很欣赏这方面的任何帮助或指示,因为就推出我们的网站而言,它会成为一个显示阻碍。

 - Server:Windows server 2012 – Intel Xeon 2.2GHz, 8GB RAM, 64-bit Operating System
 - APACHE: Apache/2.2.25
 - PHP: php-5.4.20-Win32-VC9-x86  - Memory limit 120M
 - Database: Microsoft SQL Server 10.50.1600 (using sqlsrv module) located in a different server
 - Drupal: 7.23
 - Memcache: 3.0.7
 - Modules that I thought could be linked to the issue (but might not be): views, entity reference, views field

The APACHE error log has the following entries when I replicate the crash:

 - [Wed Mar 12 18:46:37 2014] [notice] Parent: child process exited with status 255 --  - Restarting.
 - [Wed Mar 12 18:46:37 2014] [notice] Apache/2.2.25 (Win32) PHP/5.4.20 configured -- resuming normal operations
 - [Wed Mar 12 18:46:37 2014] [notice] Server built: Jun 29 2013 19:23:21
 - [Wed Mar 12 18:46:37 2014] [notice] Parent: Created child process 5084
 - [Wed Mar 12 18:46:37 2014] [notice] Child 5084: Child process is running
 - [Wed Mar 12 18:46:37 2014] [notice] Child 5084: Acquired the start mutex.
 - [Wed Mar 12 18:46:37 2014] [notice] Child 5084: Starting 150 worker threads.
 - [Wed Mar 12 18:46:37 2014] [notice] Child 5084: Starting thread to listen on port 80.
 - [Wed Mar 12 18:46:37 2014] [notice] Child 5084: Starting thread to listen on port 80.
 - [Wed Mar 12 18:46:41 2014] [notice] Parent: child process exited with status 255 -- Restarting.
 - [Wed Mar 12 18:46:41 2014] [notice] Apache/2.2.25 (Win32) PHP/5.4.20 configured -- resuming normal operations
 - [Wed Mar 12 18:46:41 2014] [notice] Server built: Jun 29 2013 19:23:21
 - [Wed Mar 12 18:46:41 2014] [notice] Parent: Created child process 1628
 - [Wed Mar 12 18:46:41 2014] [notice] Child 1628: Child process is running
 - [Wed Mar 12 18:46:41 2014] [notice] Child 1628: Acquired the start mutex.
 - [Wed Mar 12 18:46:41 2014] [notice] Child 1628: Starting 150 worker threads.
 - [Wed Mar 12 18:46:41 2014] [notice] Child 1628: Starting thread to listen on port 80.
 - [Wed Mar 12 18:46:41 2014] [notice] Child 1628: Starting thread to listen on port 80.
 - [Wed Mar 12 18:51:33 2014] [notice] Parent: Received shutdown signal -- Shutting down the server.
 - [Wed Mar 12 18:51:35 2014] [notice] Child 1628: Exit event signaled. Child process is ending.
 - [Wed Mar 12 18:51:36 2014] [notice] Child 1628: Released the start mutex
 - [Wed Mar 12 18:51:53 2014] [notice] Parent: Child process exited successfully.

windows evernt log具有以下内容:

 - Faulting application name: httpd.exe, version: 2.2.25.0, time stamp: 0x51cf187f
 - Faulting module name: php5ts.dll, version: 5.4.20.0, time stamp: 0x523a144e
 - Exception code: 0xc0000005
 - Fault offset: 0x0004b4dd
 - Faulting process id: 0x65c
 - Faulting application start time: 0x01cf3e2368a98606
 - Faulting application path: C:\Apache2\bin\httpd.exe
 - Faulting module path: C:\php-5.4.20-Win32-VC9-x86\php5ts.dll
 - Report Id: a868e8ac-aa16-11e3-93f4-0050568b2e3b
 - Faulting package full name: 
 - Faulting package-relative application ID:

对于写作的数量感到抱歉,但我想确保尽可能多地解释。

由于

0 个答案:

没有答案