In my Spring boot application,
datasource:
oracle:
hikari:
jdbc-url: URL
username: Username
password: password
minimum-idle: 3
maximum-pool-size: 10
max-lifetime: 0
connection-test-query: select 1 from dual
leak-detection-threshold: 10000
driver-class-name: oracle.jdbc.OracleDriver
idleTimeout: 0
keepaliveTime: 300000
With this config, I'm getting error:
com.zaxxer.hikari.pool.ProxyLeakTask : Connection leak detection triggered for oracle.jdbc.driver.T4CConnection@48063c71 on thread taskExecutor-1, stack trace follows
java.lang.Exception: Apparent connection leak detected
Previously reported leaked connection oracle.jdbc.driver.T4CConnection@48063c71 on thread taskExecutor-1 was returned to the pool (unleaked)
The memory usage in AppMetrix has jumped to 90% which is extremely high. Now, if I run any other job, the issue will be Heap out of memory.
Any suggestions on how this can be fixed?