【问题标题】:Warning: PDO::__construct(): Error An operation on a socket could not be performed because the syst (trying to connect via tcp://DBSERV:3306)警告:PDO::__construct(): Error An operation on a socket could not be executed because the syst (trying to connect via tcp://DBSERV:3306)
【发布时间】:2011-09-19 19:30:24
【问题描述】:

抱歉,标题太长了。

这是我在 Windows Server 2008 R2 上收到的错误消息。在站点关闭之前,我在 Magento 安装和 Drupal 7 的日志中都收到了此消息。

我在这个设置中运行了两个盒子。一台同时运行 IIS 7 和 Apache 2.2.16 的 Web 服务器,以及一台同时运行 SQL Server 2008 和 Mysql 5.1.49 的单独数据库服务器

我在 Google 上搜索了这条消息,它看起来像是由 Windows 特定的错误代码生成的:10055,这表明存在资源问题。我发现的唯一解决方案与旧版本的 Windows 或 32 位版本的 Windows 有关:

http://blogs.msdn.com/b/sql_protocols/archive/2009/03/09/understanding-the-error-an-operation-on-a-socket-could-not-be-performed-because-the-system-lacked-sufficient-buffer-space-or-because-a-queue-was-full.aspx

这两种情况都不是,因此建议的修复不适用。

我在事件日志中没有看到太多任何内容,我不知道下一步该去哪里解决这个问题。另一条可能很重要的消息是在我收到套接字错误之前,我开始从 Magento 收到这个错误:

警告:simplexml_load_string():内存分配失败:缓冲区增长

有人有什么想法吗?

【问题讨论】:

    标签: php magento drupal windows-server-2008


    【解决方案1】:

    这肯定是资源问题。看起来 Magento 正在做一些事情,试图消耗所有内存 :) 到套接字操作开始失败的地步。首先检查它尝试使用simplexml_load_string 加载的内容。

    【讨论】:

      猜你喜欢
      • 2023-02-11
      • 2019-02-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 2018-12-16
      • 1970-01-01
      • 2022-12-22
      • 1970-01-01
      相关资源
      最近更新 更多