• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

idle-timeout-minutes meaning

 
R. Praveen Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
R. Praveen Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jaikiran Pai for clearing my doubt..
 
R. Praveen Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If possible Jaikiran, see my another question,

http://www.coderanch.com/t/599733/JBoss/NestedSQLException-enlist-transaction
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic