[OpenJDK 2D-Dev] IIOMetadataNode is very memoryconsuming
Holmqvist Fredrik
fredrik.holmqvist at metria.se
Fri Jun 10 09:19:59 UTC 2011
Hi,
I just reported a bug about IIOMetadataNode attributes is always
initialized to an ArrayList. This is very problematic if the metadata
has many (>100k) nodes as empty ArrayLists start eating up all the JVM
memory.
The bug report gave me no feedback about bug-id or possibility to attach
patches, so I wanted to ask if anyone is interested in a proposed patch.
The patch only inits attributes when needed, and takes care of dealing
with attributes when it is null. As attributes are private it is quite
easy to review and fix.
It would be very welcome for everyone that uses GIS-software like
GeoServer, GeoTools, uDig and others as these can handle huge
raster-sets, but ATM chokes on metadata.
Here is a real world example from geoserver-users mailing list:
http://sourceforge.net/mailarchive/message.php?msg_id=27620763
_________________________________________
Fredrik Holmqvist, Metria AB
Webb: www.metria.se <outbind://30/www.metria.se>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20110610/656f5cd6/attachment.html>
More information about the 2d-dev
mailing list