]> source.dussan.org Git - sonarqube.git/commit
SONAR-2495 Correctly deregister JDBC Driver to prevent memory leaks
authorEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 6 Jun 2011 22:16:39 +0000 (02:16 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 8 Jun 2011 17:54:38 +0000 (21:54 +0400)
commit2233993388ae63625d926099903a9b697a062409
tree5ae072e5c9997c07f48721ecf0193aed96660aed
parent2b5789abb824e5e834cbec911550f8678e2c563b
SONAR-2495 Correctly deregister JDBC Driver to prevent memory leaks

DriverDatabaseConnector should register only one instance of
DriverProxy in DriverManager and also should perform deregistration.
But this is not enough to prevent memory leaks, so class loader for
JDBC Driver should perform additional efforts for deregistration.
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapClassLoader.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapModule.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcLeakPrevention.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/bootstrap/BootstrapClassLoaderTest.java
sonar-core/src/main/java/org/sonar/jpa/session/DriverDatabaseConnector.java