wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes idle-timeout-minutes meaning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "idle-timeout-minutes meaning" Watch "idle-timeout-minutes meaning" New topic
Author

idle-timeout-minutes meaning

R. Praveen Kumar
Greenhorn

Joined: Dec 06, 2012
Posts: 9
Hi,

if idle-timeout-minutes is 5, then if a connection in pool is idle for more than 5 minutes, it will be closed.

But consider i set,

min pool size as 10

max pool size as 12

idle timeout minutes as 5


if not even a single connection is used by the application for the past 20 minutes, will only the 2 connections from the pool be closed? or all 12 connections will be closed? because i set min pool size as 10....
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

min-pool-size doesn't mean that, that many connections will be opened by default. The "prefill" element too plays a role. Take a look at the explanation of *both* "prefill" and "min-pool-size" attributes here https://community.jboss.org/wiki/ConfigDataSources

[My Blog] [JavaRanch Journal]
R. Praveen Kumar
Greenhorn

Joined: Dec 06, 2012
Posts: 9
Thank you Jaikiran Pai for clearing my doubt..
R. Praveen Kumar
Greenhorn

Joined: Dec 06, 2012
Posts: 9
If possible Jaikiran, see my another question,

http://www.coderanch.com/t/599733/JBoss/NestedSQLException-enlist-transaction
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: idle-timeout-minutes meaning
 
Similar Threads
No ManagedConnections available within configured blocking timeout ( 30000 [ms] )
Jboss, connection problem
Jboss connection pool not releasing the connection from pool
Unable to obtain datasource
DataSource Connections not closed