我正在尝试在Tomcat 8.5中使用HikariCP JNDI DataSource Factory,但是当它关闭时,我得到以下警告:
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)
我的Hiraki配置是在JNDI DataSource Factory(Tomcat等)文档之后设置的,它是这样的:
我找到了此链接, 但它无济于事,因为我将Hiraki用作Tomcat中的资源。
我正在使用Tomcat 8.5 HikariCP 2.5.1
有什么帮助吗?谢谢。