| JBoss run out of Connections ? |
|
|
|
| Written by Mark S. | |||||
| Thursday, 23 October 2008 10:19 | |||||
|
# 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
Only registered users can write comments!
Powered by !JoomlaComment 3.26
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 ) |




)