我有部署在 Jboss eap 6.4 容器上的应用程序。应用程序与 postgres 建立连接。我正在观察我的 Web 应用程序停止工作(无法从数据库中获取数据)。但如果启用/禁用数据源,则从 jboss cli 重新加载。它工作了一段时间。请提出相同的建议。
尝试合并最小/最大池大小,后台验证为真。
容器日志中没有错误显示
我有部署在 Jboss eap 6.4 容器上的应用程序。应用程序与 postgres 建立连接。我正在观察我的 Web 应用程序停止工作(无法从数据库中获取数据)。但如果启用/禁用数据源,则从 jboss cli 重新加载。它工作了一段时间。请提出相同的建议。
尝试合并最小/最大池大小,后台验证为真。
容器日志中没有错误显示
Probably you have a connection leak. Take a look at the logs; that should give you more information, also look at the number of active connections. Your app works after the enable/disable because that will terminate all the connections to the database.
除了 Gerardo A. 提到的,由于您更改了 EAP 版本,因此值得验证 PostGres 驱动程序和配置,下面是配置示例:
<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
<resources>
<resource-root path="postgresql-9.1-902.jdbc4.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>