简体   繁体   English

PostgreSQL客户端溢出

[英]postgresql client overflow

I keep getting the error: 我不断收到错误:

FATAL: sorry, too many clients already 致命:抱歉,已经有太多客户

I never had the problem before, but I recently upgraded to version 9.03 and also OS X lion preview release 2. It doesn't seem to matter how idle the processes are, they never die. 我以前从来没有遇到过问题,但是最近我升级到了9.03版,还升级到了OS X lion预览版2。进程的空闲程度似乎并不重要,它们永远不会死。 I have to restart postgres every half hour or so. 我必须每半小时左右重新启动一次postgres。 I'm using postgres via Rails 3 and Navicat, never had a problem with either before now and stopping both clients does nothing to solve the problem. 我正在通过Rails 3和Navicat使用postgres,以前从未遇到过问题,并且停止这两个客户端都无法解决问题。

Any ideas or settings I'm missing? 我缺少任何想法或设置吗? Not sure what settings I should display here for my setup, but everything should be default. 不确定应在此处显示哪些设置以进行设置,但所有设置均应为默认设置。 Installed postgres using HOMEBREW. 使用HOMEBREW安装了postgres。

Most likely go into postgresql.conf and edit max_connections and post the existing value.To see how many connections you have an what they are doing select from pg_stat_activity. 最有可能进入postgresql.conf并编辑max_connections并发布现有值。要查看您有多少个连接以及它们正在做什么,请从pg_stat_activity中选择。 Maybe your bleeding connections? 也许你的流血联系?

See this link http://www.postgresql.org/docs/9.0/interactive/runtime-config-connection.html 看到此链接http://www.postgresql.org/docs/9.0/interactive/runtime-config-connection.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM