3 Replies Latest reply on Nov 8, 2010 4:39 PM by Wolf-Dieter Fink

    When does JBoss shrink a connection pool?

    Glauber Ribeiro Newbie

      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