JBoss Community

When does JBoss shrink a connection pool?

created by Glauber Ribeiro in Datasource Configuration - View the full discussion

I'm using JBoss 4.3

Say i have a data source defined like this:

 

     <min-pool-size>5</min-pool-size>
     <max-pool-size>25</max-pool-size>
     <validate-on-match>false</validate-on-match>
     <background-validation>true</background-validation>
     <idle-timeout-minutes>5</idle-timeout-minutes>
     <background-validation-minutes>1</background-validation-minutes>
  <prefill>true</prefill>

    <min-pool-size>5</min-pool-size>

    <max-pool-size>25</max-pool-size>

    <prefill>true</prefill>

 

 

I see JBoss grab 5 connections when it starts, and grow to 25 as needed. But i'm not seeing it reliably shrink down back to 5. Is it supposed to? What triggers the shrinkage?

 

Thanks,

 

glauber

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community