问题描述如下:

java项目使用jboss容器进行部署,使用jndi数据库连接池。

服务启动后一般两个周左右就会报数据库连接不足

org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking timeout ( 5000 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 5000 [ms] )) 

记一次数据库连接问题排查org.jboss.util.NestedSQLException

遇到这个问题不用怀疑,肯定是使用连接之后没用关闭导致的连接泄露。一定要仔细排查代码。

相关文章:

  • 2021-07-28
  • 2021-10-27
  • 2022-12-23
  • 2021-08-28
  • 2021-07-07
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-02-08
  • 2021-06-08
  • 2021-12-06
  • 2022-12-23
  • 2021-05-20
  • 2022-01-18
相关资源
相似解决方案