Version 1.11.0 of my ClassLoader Leak Prevention library has been released.
Apart from minor tweaks it contains the following features:
- Adding clearing of default java.net.ProxySelector in case loaded by web app. (Thanks to Kenny Moens)
- Detect Orale JRE in addition to Sun JRE. (Thanks to Brad Cupit)
- Avoid endless loop by not trying to force Garbage Collection in case
-XX:+DisableExplicitGCis used. (Thanks to Kenny Moens)
- Avoid threads started in contextInitialized() inheriting the AccessControlContext and it’s ProtectionDomains from the current thread. (Thanks to Brad Cupit)
- Added setting:
ClassLoaderLeakPreventor.startOracleTimeoutThread, that determines whether the
oracle.jdbc.driver.OracleTimeoutPollingThreadthread should be forced to start with system ClassLoader, in case Oracle JDBC driver is present. (Defaults to true)
Grab the new version via Maven central or download the jar here.
<dependency> <groupId>se.jiderhamn</groupId> <artifactId>classloader-leak-prevention</artifactId> <version>1.11.0</version> </dependency>