We have a web start application (and/or applet) that uses geotools and when we log out of our application we want to free up memory.
Since our application is quite big as it is we have our own class loader, one per login session. This classloader will load geotools on demand (and similar for our other classes).
When we log out we drop our references to this class loader, but this class loader (and its classes) can not be dropped fully since the WeakCollectionCleaner is still running.
How do we shut this org.geotools.util.WeakCollectionCleaner down?
When I look at the source I also find a copy of this class called org.geotools.data.directory.ReferenceCleaner, but I do not think our code ever touches that one.