Hi all,
profiling I discovered that all the memory of my geoserver was eaten by
a huge (thousands) list of 
org.geotools.referencing.factory.DeferredAuthoritityFactory$Disposer
objects (the queue being a java.util.TimerTask object).

There is one for each crs related factory created.
Now, the streaming renderer calls
FactoryFinder.getCoordinateOperationFactory(hints)
each time it has to compute a scale, so each time it does render a map, 
and then
throws the factory away... ok, stupid, and I'll fix it, but it makes me 
wonder a little:
shouldn't the objects returned by the coordinate operation factories shared?
They are expensive to build, and as far as I know, read only. What's the 
risk
in having just one instance of each instead of one per call?

Cheers
Andrea Aime

PS: the streaming renderer does not hold a reference to the factory, so 
I guess
it's the disposer itself, registered in a timer queue, that keeps the 
various
factories in memory...

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to