Php 运行APACHE崩溃的Windows服务器-CPU 100%-Drupal网站
在过去的几周里,我的Drupal网站出现了一个大问题。我一直试图弄清问题的来源,但目前很难确定问题是与模块相关还是与服务器相关 从本质上说,我的服务器达到了100%的CPU,在我重置APACHE之前不会停止。我没有得到带有PHP错误的WSOD,并且我的PHP错误日志中没有新条目。另外,由于PHP没有给我一个错误,我无法使用xhprof进行调试 我发现,当我有多个用户浏览该网站时,以及当我在浏览器中快速打开多个选项卡时,就会发生这种情况。我起初认为这是因为我在使用views字段模块的页面中嵌入了一些视图,每个视图都启用了上下文过滤器。这些页面通常是问题出现的地方 然而,我已经能够通过在多个选项卡中快速打开没有视图的页面来复制崩溃。这让我开始认为它与服务器相关,但因为我在服务器端没有太多经验,所以我不确定要寻找什么或如何调试 下面是我的服务器和模块设置的详细信息。我将感谢任何帮助或指导,因为它已经成为一个显示停止就启动我们的网站而言Php 运行APACHE崩溃的Windows服务器-CPU 100%-Drupal网站,php,windows,apache,drupal,drupal-views,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日志包含以下内容:
- 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:
很抱歉写了这么多,但我想确保尽可能多地解释
谢谢