`

Timeout waiting for idle object

 
阅读更多
增加Hibernate的database配置:
<property name="maxActive" value="100"/>
<property name="maxWait" value="2000"/>
<property name="minIdle" value="10" />
设置这个参数maxActive, maxWait大一点,

要是设定timout能解决么?

详细参考: spring中配置dbcp连接池http://hi.baidu.com/zhangtianshun/item/77e26545c2225ad3c1a59282
分享到:
评论

相关推荐

    Codis jar包修改过RoundRobinJedisPool代码的for循环

    系统使用了codis之后,发现当并发量上来之后,会抛出异常:could not get resource from pool,更底层的原因是:Timeout waiting for idle object 修改了RoundRobinJedisPool代码将for循环内部的代码控制到原子 jar...

    java中常见的错误.docx

    15. 数据库连接池异常:`Timeout waiting for idle object`提示获取数据库连接超时,可能是连接池配置不当或资源耗尽。 16. 结果集关闭:`Operation not allowed after ResultSet closed`再次强调结果集必须在正确...

    dbcp 连接池不合理的锁导致连接耗尽解决方案

    在提供的堆栈跟踪中,可以看到`NoSuchElementException: Timeout waiting for idle object`异常,这通常表示线程在等待连接池中的空闲连接时超时,即没有在预设时间内获取到连接。这可能是因为: 1. **连接池大小...

    计算机网络第六版答案

    These well-established and time-honored rules have made it easier for nations and people to live and work together. Part of protocol has always been the acknowledgment of the hierarchical standing of...

    ViewPager 放大缩小左右移动

    Object object; int position; boolean scrolling; } private static final Comparator&lt;ItemInfo&gt; COMPARATOR = new Comparator() { @Override public int compare(ItemInfo lhs, ItemInfo rhs) { ...

    USB30 Universal Serial Bus 3.0 Specification pdf it is free

    724 Link Command Usage for Flow Control, Error Recovery, and Power Management7-15 7241 Header Packet Flow Control and Error Recovery 7-15 72411 Initialization7-15 72412 General Rules of LGOOD_n and ...

Global site tag (gtag.js) - Google Analytics