title: How to resolve - JBAS014516: Failed to acquire a permit within 5 MINUTES
body: <p>I am currently facing 'JBAS014516: Failed to acquire a permit within 5 MINUTES' issue with my EJB-JBOSS configuration.Below is my configuration - </p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:ejb3:1.4"&gt;
          &lt;session-bean&gt;
              &lt;stateless&gt;
                  &lt;bean-instance-pool-ref pool-name="slsb-strict-max-pool"/&gt;
              &lt;/stateless&gt;
              &lt;stateful default-access-timeout="5000" cache-ref="simple"/&gt;
              &lt;singleton default-access-timeout="5000"/&gt;
          &lt;/session-bean&gt;
          &lt;mdb&gt;
              &lt;resource-adapter-ref resource-adapter-name="hornetq-ra"/&gt;
              &lt;bean-instance-pool-ref pool-name="mdb-strict-max-pool"/&gt;
          &lt;/mdb&gt;
          &lt;pools&gt;
              &lt;bean-instance-pools&gt;
                  &lt;strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/&gt;
                  &lt;strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/&gt;
              &lt;/bean-instance-pools&gt;
          &lt;/pools&gt;
          &lt;caches&gt;
              &lt;cache name="simple" aliases="NoPassivationCache"/&gt;
              &lt;cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/&gt;
              &lt;cache name="clustered" passivation-store-ref="abc" aliases="StatefulTreeCache"/&gt;
          &lt;/caches&gt;
  
          &lt;async thread-pool-name="default"/&gt;
          &lt;timer-service thread-pool-name="default"&gt;
              &lt;data-store path="timer-service-data" relative-to="jboss.server.data.dir"/&gt;
          &lt;/timer-service&gt;
          &lt;remote connector-ref="remoting-connector" thread-pool-name="default"/&gt;
          &lt;thread-pools&gt;
              &lt;thread-pool name="default"&gt;
                  &lt;max-threads count="10"/&gt;
                  &lt;keepalive-time time="100" unit="milliseconds"/&gt;
              &lt;/thread-pool&gt;
          &lt;/thread-pools&gt;
          &lt;iiop enable-by-default="false" use-qualified-name="false"/&gt;
          &lt;default-security-domain value="other"/&gt;
          &lt;default-missing-method-permissions-deny-access value="true"/&gt;
      &lt;/subsystem&gt;
  </code></pre>
  
  <p>To resolve this should i increase the 'strict-max-pool' to a higher value or increase thread pool size.</p>