【问题标题】:Randomly gor error Connection reset by peer - Zend Opcache Php 5.4.7随机 gor 错误连接由对等方重置 - Zend Opcache Php 5.4.7
【发布时间】:2016-07-07 20:08:49
【问题描述】:

我的设置:

  • Windows 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 配置

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 会解决这个问题吗?

谢谢。

【问题讨论】:

  • 不要投反对票,请告诉你的理由?这是我面临的一个真正的问题,其他人也面临着。

标签: php apache opcache connection-reset


【解决方案1】:

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

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

我根据这篇帖子How do I increase the stack size for Apache running under Windows 7?解决了这个问题

【讨论】:

    猜你喜欢
    • 2020-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-14
    • 2013-08-03
    • 2019-03-05
    相关资源
    最近更新 更多