title: Jboss Wildfly not closing connections when not in use
body: <p>I am using jboss server with the following configurations timeout:-</p>
  
  <pre><code>&lt;timeout&gt;
      &lt;idle-timeout-minutes&gt;1&lt;/idle-timeout-minutes&gt;
  &lt;/timeout&gt;
  &lt;min-pool-size&gt;10&lt;/min-pool-size&gt;
  &lt;max-pool-size&gt;30&lt;/max-pool-size&gt;
  &lt;prefill&gt;true&lt;/prefill&gt;
  &lt;use-strict-min&gt;false&lt;/use-strict-min&gt;
  &lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;
  </code></pre>
  
  <p>Now, as soon as the server reaches the max load(30 connections) the datasource details obtained from jboss's CLI reports Active Count = 30 and Available Count = 30.</p>
  
  <p>However, even after reducing the server request to 1, the active count and the Available Count  report 30 as their values.</p>
  
  <p><strong>Expected</strong> :- The numbers should decrease and ideally only 1 connection from prefilled pool should be used instead of keeping all the connections awake!!</p>
  
  <p>I am seeing the following logs :-</p>
  
  <p>17:34:12,359 DEBUG [org.jboss.jca.core.connectionmanager.pool.idle.IdleRemover] (IdleRemover) Notifying pools, interval: 30000</p>
  
  <p>Please help!</p>