java.lang.exception明显的连接泄漏

时间:2019-03-18 14:20:09

标签: oracle tomcat jdbc

我支持使用Tomcat的供应商应用程序。我们最近搬到了AWS,现在开始看到“检测到表观连接泄漏”。日志上的实际警告显示:

[2019-03-16 03:50:51][WARN ] [SECURITY-pool housekeeper] [com.zaxxer.hikari.pool.ProxyLeakTask] -Connection leak detection triggered for oracle.jdbc.driver.T4CConnection@6d6a969a on thread pool-35-thread-1, stack trace follows
java.lang.Exception: Apparent connection leak detected
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:85)
    at com.ze.cp.ProxyDataSource.getConnection(ProxyDataSource.java:19)
    at com.ze.cp.WrapperDataSource.getConnection(WrapperDataSource.java:16)
    at com.ze.cp.ProxyDataSource.getConnection(ProxyDataSource.java:19)
    at com.ze.cp.ProxyDataSource.getConnection(ProxyDataSource.java:19)
    at com.ze.cp.SimpleDataSource.getConnection(SimpleDataSource.java:12)
    at com.ze.security.lock.DBConnectionManager.getConnection(DBConnectionManager.java:49)
    at com.ze.security.lock.LockService.lock(LockService.java:113)
    at com.ze.security.lock.LockService.lock(LockService.java:95)
    at com.ze.curve.dao.CurveDataDAO.getInputIdsChangedSince(CurveDataDAO.java:2806)
    at com.ze.curve.service.CurveService.getInputIdsChangedSince(CurveService.java:3818)
    at com.ze.curve.monitor.CurveAPIDataSource.getInputIdsChangedSince(CurveAPIDataSource.java:62)
    at com.ze.curve.monitor.CurveMonitor.processChangedInputs(CurveMonitor.java:766)
    at com.ze.curve.monitor.CurveMonitor$1.run(CurveMonitor.java:264)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

这真的是由AWS引起的吗?我可以使用一些jdbc.connectionProperties设置来减轻这种情况吗?

提前感谢您的帮助!

0 个答案:

没有答案