【问题标题】:Exception raised when try to run web application using postgres database尝试使用 postgres 数据库运行 Web 应用程序时引发异常
【发布时间】:2018-09-23 09:40:27
【问题描述】:

当我使用 postgres 数据库在 linux 上运行 tomcat 的 start.bat 文件时。在 postgres_hba.conf 文件中更改后出现以下错误。

           C3P0PooledConnectionPoolManager[identityToken->2u13c99u1fd86im176rze7|779becbd]-HelperThread-#1--WARN -com.mchange.v2.resourcepool.BasicResourcePool:com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@1de8b573 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 

org.postgresql.util.PSQLException: FATAL: 剩余的连接槽保留给非复制超级用户连接

【问题讨论】:

    标签: postgresql hibernate redhat c3p0 postgresql-9.4


    【解决方案1】:

    错误信息相当清楚。您尝试打开的数据库连接数超过了在 postgresql.conf 中配置的数量。即使是对您的日志和手册的最短搜索也可以清楚地说明这一点。

    【讨论】:

    • 如何打开更多的数据库连接?因为我已经在 postgres 的配置文件中更改了 max_connection。
    • 如果你这样做了,你会发布一些证据,不是吗?在期望人们帮助你的同时隐藏信息真的没有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-14
    • 1970-01-01
    相关资源
    最近更新 更多