随机错误 对等方重置连接 - Zend Opcache Php 5.4.7


Randomly gor error Connection reset by peer - Zend Opcache Php 5.4.7

我的设置:

  • 视窗 2008 R2 服务器
  • PHP 版本 5.4.7
  • Zend Opcache 7.0.3(我刚刚升级到7.0.5仍然是一样的)

有时我会在使用 Chrome 浏览网站时被对等方重置连接。

我按照其他线程的建议启用了"use_cwd"设置。还是没有帮助。

编辑

我在Windows事件查看器中看到很多错误,每隔几分钟发生一次,如下所示:

Faulting application name: httpd.exe, version: 2.4.3.0, time stamp: 0x502f70a3
Faulting module name: php5ts.dll, version: 5.4.7.0, time stamp: 0x505114f8
Exception code: 0xc00000fd
Fault offset: 0x000398c9 
Faulting process id: 0xd1c
Faulting application start time: 0x01d183ec32bb4c1b
Faulting application path: ...'apache'bin'httpd.exe
Faulting module path: ...'php'php5ts.dll
Report Id: 72e103b0-efdf-11e5-ae29-22000afc56aa

但是当我关闭opcache时,我不再看到这些错误。

我的opcache conf

zend_extension = "xxxx'php'ext'php_opcache.dll"
opcache.memory_consumption=192
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=30
opcache.use_cwd=1
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.blacklist_filename = "xxxx'mypath'opcache-blacklist.txt"

知道如何解决这个问题吗?将我的 PHP 版本升级到 5.5 可以解决这个问题吗?

谢谢。

异常

代码0xc00000fd表示堆栈溢出错误。所以我开始从这个方向进行调查。

这是由于默认的ThreadStackSize为1MB(Apache Windows的默认值)太小。将其增加到8MB为我解决了问题。

我根据这篇文章解决了这个问题 如何增加在 Windows 7 下运行的 Apache 的堆栈大小?