【发布时间】:2010-09-03 17:39:28
【问题描述】:
我们正在运行一个连接密集、插入密集的 postgres 数据库(到了我们应该做一些连接池的地步,但现在没有时间了)。
在进行一些故障排除时,我使用 netstat 显示与 postgres 的连接数。我通常会看到超出我在 postgres.conf 文件中指定的内容(通过 max_connections)。
即使我将 max_connections 设置为 1000,我也会通过 netstat 看到 1400-1600 个连接。
有人知道发生了什么吗?这究竟是怎么发生的?
对此的任何见解都会很棒。
【问题讨论】:
标签: postgresql port connection netstat