title: The web application appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it
body: <p>I am trying use HikariCP JNDI DataSource Factory within Tomcat 8.5 but when it shutdown I'm getting these warning:</p>
  
  <pre><code>o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
   sun.misc.Unsafe.park(Native Method)
   java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>My Hiraki configuration was setup following the JNDI DataSource Factory (Tomcat, etc.) <a href="https://github.com/brettwooldridge/HikariCP/wiki/JNDI-DataSource-Factory-(Tomcat,-etc.)" rel="noreferrer">document</a>, and is something like this:</p>
  
  <pre><code>&lt;Resource name="******" auth="Container"
        factory="com.zaxxer.hikari.HikariJNDIFactory"
        type="javax.sql.DataSource"
        minimumIdle="5" 
        maximumPoolSize="10"
        connectionTimeout="300000"
        driverClassName="org.postgresql.Driver"
        jdbcUrl="jdbc:postgresql://******"
        dataSource.implicitCachingEnabled="true" 
        dataSource.user="******"
        dataSource.password="******" /&gt;
  </code></pre>
  
  <p>I've found this <a href="https://github.com/brettwooldridge/HikariCP/issues/642" rel="noreferrer">link</a>  but it doesn't help because I'm using Hiraki as a resource inside Tomcat.</p>
  
  <p>I'm using Tomcat 8.5
  HikariCP 2.5.1</p>
  
  <p>Any help? Thanks.</p>