2.5.0. If 2.5.1 is available then I will use that. Do I have to do anything special?
Jesse On 28-Oct-08, at 5:50 PM, Justin Deoliveira wrote: > Hey Jesse, > > Are you using a recent version of 2.5.x or trunk? I just recently > fixed this for the 2.5.1 release. > > -Justin > > Jesse Eichar wrote: >> Hi, >> I need some help optimizing the memory usage of the >> org.geotoolsParser. It is causing OutOfMemory errors. I don't >> know if the problem is how I am using it or if there is a bug in >> the code that is causing it. The objects using all the space are: >> 40% java.util.HashMap$Entry -- The creations for this seems to be >> created by SchemaIndextImpl.buildElementIndex() and >> SchemaIndexImpl.buildComplexTypeIndex(). These methods are called >> as part of calling Parser.parse. Is there a way to build this >> index only once and share it between calls? >> 33% javax.xml.namespace.QName -- The same methods are creating >> these objects. Same question, can I do some caching for these as >> well? >> I am looking at the code and I see that on endDocument the schemas >> are nulled out. And on startDocument the index is re-created if >> the schemas field is null This means that the schemas and indexes >> are being re-created each time. I am always parsing the same tags >> in the gml document. Normally it is just a very simple polygon so >> caching is important. Should I hack a fix in? Or is there a way >> to do this that I am not seeing? >> Thanks, >> Jesse >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel > > > -- > Justin Deoliveira > OpenGeo - http://opengeo.org > Enterprise support for open source geospatial. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
