title: Grails Gorm Timeout: Pool empty. Unable to fetch a connection
body: <blockquote>
    <p>Timeout: Pool empty. Unable to fetch a connection in 10 seconds, none available[size:7; busy:0; idle:0; lastwait:10000]</p>
  </blockquote>
  
  <p>The above error is coming after a long time my application gets live.</p>
  
  <p>Below is my GORM db configuration:</p>
  
  <pre><code>propertyShortSlave:
      pooled: true
      jmxExport: true
      driverClassName: com.mysql.jdbc.Driver
      url: url
      username: uuuuuu
      password: pppppp
      dbCreate: validate
      readOnly: true
      dialect: org.hibernate.dialect.MySQL5InnoDBDialect
      properties:
              initialSize: 5
              maxActive: 7
              minIdle: 5
              validationQuery: SELECT 1
              maxIdle: 7
              maxWait: 10000
              maxAge: 600000
              timeBetweenEvictionRunsMillis: 5000
              minEvictableIdleTimeMillis: 60000
              validationQueryTimeout: 3
              validationInterval: 15000
              testOnBorrow: true
              testWhileIdle: true
              testOnReturn: false
              jdbcInterceptors: "ConnectionState;StatementCache(max=200)"
  </code></pre>
  
  <p>How can I fix it?</p>