milesibastos / jTDS

jTDS JDBC Driver
http://jtds.sourceforge.net/
GNU Lesser General Public License v2.1
81 stars 46 forks source link

jTDS Memory Leak on WildFly 10.1 related to TimerThread #11

Open jasonex7 opened 5 years ago

jasonex7 commented 5 years ago

When configuring query-timeout in a WildFly datasource the singleton TimerThread class is instantiated with contextClassLoader from the first client that uses a Connection preventing garbage collect Application ClassLoader on hot redeploy the app. I think TimerThread should be initialized with library class loader as contextClassLoader to avoid that.