postgresql - 没有可用的缓冲空间

标签 postgresql yii postgresql-9.3 postgresql-9.4

enter image description here

我正在使用 Yii 和 postgres 数据库中的应用程序。当我在实时服务器(不是本地系统)上运行应用程序时,我收到此错误

“CDbConnection 无法打开数据库连接:SQLSTATE[08006] [7] 无法连接到服务器:没有可用的缓冲区空间 (0x00002747/10055) 服务器是否在主机“localhost”上运行并接受 端口 5432 上的 TCP/IP 连接?”

我有 5 个活跃的客户数据库。错误不是每次都显示。如何解决这个问题..?

最佳答案

当 Winsock 操作返回错误 WSAENOBUFS 时,PostgreSQL 会抛出此错误消息。

微软 describes the error如:

No buffer space available.

An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

这是Windows操作系统的问题。我对 Windows 不太了解,但听起来资源短缺。

也许打开的 TCP 连接太多?

关于postgresql - 没有可用的缓冲空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39610122/

相关文章:

ruby-on-rails - 在生产环境中运行 Rails 迁移

sql - 按时间戳分钟在 postgres 中查询

sql - 为什么创建表比更新字段快?

sql - 将集合更新、插入或删除到表中

php - 使用经过身份验证的用户进行 yii 功能测试

php - Yii2 - 命令 Controller 不工作 getalias webroot

php - Yii - 在数据库中插入空值, 'safe' 属性集

postgresql - 无法删除 Postgres 中的 GIN 索引

python - 使用 SQLAlchemy 从反射表中删除行

PostgreSQL:重复的键值违反了 UPDATE 命令的唯一约束