Joomla Popin Window by DART Creations

Sponsors

JBoss Books

Support this site buying books here

Merry Xmas

Banner

Designed by:
SiteGround web hosting Joomla Templates
JBoss run out of Connections ? PDF Print E-mail
Written by Mark S.   
Thursday, 23 October 2008 10:19
have you got No ManagedConnections available error message ? well there are 4 possible cause to this problem.......
# 1  Your connection pool is too small

Increase the max number of connections in your Datasource .ds.xml file

<max-pool-size>100</max-pool-size>

# 2  Your threads are being starved by cpu

Incresing the blocking timeout from default 30000 in your Datasource ds.xml

<blocking-timeout-millis>50000</blocking-timeout-millis>

# 3 You are not closing connections properly


Are you closing your connections in the finally method ? (If not your job is really in danger )
finally {
    if (resultSet != null)
      resultSet.close();
    if (statement != null)
      statement.close();

    connection.close();
}

#4 You have hit a bug !

This is the most unlikely......anyway a couple of bugs existed with release 3.2.5 and earlier, so check the bug parade !

JBoss.org Search
Custom Search
Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Thursday, 23 October 2008 10:37 )
 

Valid XHTML and CSS.

Unless stated, all the contents of this site is licensed under
Banner